X-Git-Url: https://git.mxchange.org/?p=jprojects-scripts.git;a=blobdiff_plain;f=push-stick.sh;h=2c6f5209b4f4e448f26c69c442febd15ec77d4ef;hp=04321b4af3a6968fc4e956c0c049f2fbf33c009a;hb=e3ab6b9d3a80d7ae840b0745f5c2a96b190d1bdf;hpb=18031c260830134fa1e73795a1a02cd8ba1b7ddf diff --git a/push-stick.sh b/push-stick.sh index 04321b4..2c6f520 100755 --- a/push-stick.sh +++ b/push-stick.sh @@ -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}"