Skip to content

Commit

Permalink
Command fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tmachyshyn committed Feb 6, 2024
1 parent b33cd72 commit bf566eb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions commands/command.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,11 @@ function actionStop() {
return
fi

docker compose -f "$homeDirectory/docker-compose.yml" down
if [ ! -f "${homeDirectory}/docker-compose.yml" ]; then
return
fi

docker compose -f "${homeDirectory}/docker-compose.yml" down
}

function actionBuild() {
Expand Down Expand Up @@ -207,7 +211,7 @@ function actionRestore() {
exit 1
fi;

actionStop
actionStop > /dev/null 2>&1

rm -rf "${homeDirectory}_OLD"

Expand Down

0 comments on commit bf566eb

Please sign in to comment.