From cdf848817f426ed8bcc634bedc0a45363703fdd1 Mon Sep 17 00:00:00 2001 From: rubyowo Date: Mon, 3 Jul 2023 18:49:02 +0400 Subject: [PATCH] stop on first error with bash command --- update.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/update.sh b/update.sh index 558750cf..1769c3c9 100755 --- a/update.sh +++ b/update.sh @@ -1,13 +1,10 @@ #!/bin/bash +set -e echo Updating Zeppelin... docker compose -f docker-compose.production.yml stop git pull -if [ $? -ne 0 ]; then - echo "git pull failed. exiting." - exit 1 -fi docker compose -f docker-compose.production.yml build docker compose -f docker-compose.production.yml up -d