From: Roland Haeder Date: Sun, 17 Apr 2016 19:23:38 +0000 (+0200) Subject: Exit on all failed pushs X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7032f59c754e6f18da58f48e1f5213419760e483;p=jprojects-scripts.git Exit on all failed pushs Signed-off-by: Roland Haeder --- diff --git a/push-stick.sh b/push-stick.sh index 04321b4..2fe7e2b 100755 --- a/push-stick.sh +++ b/push-stick.sh @@ -34,13 +34,13 @@ for project in ${LIST}; do continue elif [ "$1" = "d" ] then - git push --all daedalus + git push --all daedalus || exit 255 elif [ "$1" = "t" ] then - git push --all transport + git push --all transport || exit 255 elif [ "$1" = "u" ] then - git push --all upstream + git push --all upstream || exit 255 fi cd "${JPROJECTS_HOME}"