Opps, other commit messages came from other projects. This replaces backticks
[jprojects-scripts.git] / commit-jprojects.sh
index 86810644ffa558d9fe0dfa3a9b1a079a717b3e75..99f58bdb05bc5d005d0046bf208d5220ef749660 100755 (executable)
@@ -3,13 +3,18 @@
 . ./.jprojects.sh || exit 255
 
 for project in ${LIST}; do
-       if [ ! -d "${JPROJECTS_HOME}/${project}" ]
+       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:"`
+       CHECK_CHANGES=$(git commit -a --dry-run | grep "Changes to be committed:")
 
        if [ -n "${CHECK_CHANGES}" ]
        then