]> git.mxchange.org Git - jprojects-scripts.git/commitdiff
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 04321b4af3a6968fc4e956c0c049f2fbf33c009a..2fe7e2b1ff08c6fad1dc3d9e680f22e1ddd3b0c4 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}"