Skip to content

Commit b0a6f2d

Browse files
committed
stopping if errors happen
1 parent 8e20ec7 commit b0a6f2d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

sync.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ fi
3535
if [ "$1" == "up" ] ; then
3636
print_style "Initializing Docker Sync\n" "info";
3737
print_style "(May take a long time (15min+) on the 'Looking for changes' step the first time)\n" "warning";
38-
docker-sync start;
39-
print_style "Initializing Docker Compose\n" "info";
40-
shift; # removing first argument
38+
docker-sync start &&
39+
print_style "Initializing Docker Compose\n" "info" &&
40+
shift && # removing first argument
4141
docker-compose -f docker-compose.yml -f docker-compose.sync.yml up -d ${@};
4242

4343
elif [ "$1" == "down" ]; then
4444
print_style "Stopping Docker Compose\n" "info";
45-
docker-compose down;
46-
print_style "Stopping Docker Sync\n" "info";
45+
docker-compose down &&
46+
print_style "Stopping Docker Sync\n" "info" &&
4747
docker-sync stop;
4848

4949
elif [ "$1" == "install" ]; then

0 commit comments

Comments
 (0)