added jrecruiter for Galdora e.K
[jprojects-scripts.git] / push-stick.sh
index 04321b4af3a6968fc4e956c0c049f2fbf33c009a..2c6f5209b4f4e448f26c69c442febd15ec77d4ef 100755 (executable)
@@ -17,6 +17,12 @@ then
 fi
 
 for project in ${LIST}; do
+       if [ ! -d "${JPROJECTS_HOME}/${project}" ]
+       then
+               echo "$0: Project '${project}' does not exist."
+               continue;
+       fi
+
        echo "$0: Processing '${project}',mode='$1' ..."
        cd "${JPROJECTS_HOME}/${project}" || exit 255
 
@@ -34,13 +40,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}"