- cd "${project}" || exit 255
- CHECK_CHANGES=`git commit --dry-run | grep "Changes to be committed:"`
+ if [ "${project}" = "jprojects-scripts" ]
+ then
+ echo "$0: Skipping jprojects-scripts ..."
+ continue
+ elif [ ! -d "${JPROJECTS_HOME}/${project}" ]
+ then
+ echo "$0: Project '${project}' does not exist."
+ continue
+ fi
+
+ cd "${JPROJECTS_HOME}/${project}" || exit 255
+ CHECK_CHANGES=$(git commit -a --dry-run | grep "Changes to be committed:")