Exit on all failed pushs
[jprojects-scripts.git] / 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}"