Exit on all failed pushs
authorRoland Haeder <roland@mxchange.org>
Sun, 17 Apr 2016 19:23:38 +0000 (21:23 +0200)
committerRoland Haeder <roland@mxchange.org>
Sun, 17 Apr 2016 19:23:38 +0000 (21:23 +0200)
Signed-off-by: Roland Haeder <roland@mxchange.org>
push-stick.sh

index 04321b4..2fe7e2b 100755 (executable)
@@ -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}"