ignored non-existing projects
authorRoland Haeder <rhaeder@cho-time.de>
Mon, 9 May 2016 07:18:10 +0000 (09:18 +0200)
committerRoland Haeder <rhaeder@cho-time.de>
Mon, 9 May 2016 07:18:10 +0000 (09:18 +0200)
Signed-off-by: Roland Haeder <rhaeder@cho-time.de>
commit-jprojects.sh

index 68fdbee..31bac12 100755 (executable)
@@ -1,24 +1,29 @@
-#!/bin/bash
-
-. ./.jprojects.sh || exit 255
-
-for project in ${LIST}; do
-       cd "${JPROJECTS_HOME}/${project}" || exit 255
-       CHECK_CHANGES=`git commit -a --dry-run | grep "Changes to be committed:"`
-
-       if [ -n "${CHECK_CHANGES}" ]
-       then
-               echo "$0: Committing '${project}' ..."
-               if [ -n "$1" ]
-               then
-                       git commit -a --signoff -S -m "$1" || exit 255
-               else
-                       git commit -a --signoff -S || exit 255
-               fi
-       else
-               echo "$0: Nothing to commit for project '${project}'."
-       fi
-done
-
-echo "$0: All done."
-exit 0
+#!/bin/bash\r
+\r
+. ./.jprojects.sh || exit 255\r
+\r
+for project in ${LIST}; do\r
+       if [ ! -d "${JPROJECTS_HOME}/${project}" ]\r
+       then\r
+               continue\r
+       fi\r
+\r
+       cd "${JPROJECTS_HOME}/${project}" || exit 255\r
+       CHECK_CHANGES=`git commit -a --dry-run | grep "Changes to be committed:"`\r
+\r
+       if [ -n "${CHECK_CHANGES}" ]\r
+       then\r
+               echo "$0: Committing '${project}' ..."\r
+               if [ -n "$1" ]\r
+               then\r
+                       git commit -a --signoff -S -m "$1" || exit 255\r
+               else\r
+                       git commit -a --signoff -S || exit 255\r
+               fi\r
+       else\r
+               echo "$0: Nothing to commit for project '${project}'."\r
+       fi\r
+done\r
+\r
+echo "$0: All done."\r
+exit 0\r