-#!/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
+#!/bin/bash
+
+. ./.jprojects.sh || exit 255
+
+for project in ${LIST}; do
+ if [ ! -d "${JPROJECTS_HOME}/${project}" ]
+ then
+ continue
+ fi
+
+ 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