From: Roland Haeder Date: Tue, 17 May 2016 18:01:07 +0000 (+0200) Subject: Converted CRLF->LF X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ea626de0fe422e33d641f108b0a940bbfc0afcc3;p=jprojects-scripts.git Converted CRLF->LF Signed-off-by: Roland Haeder --- diff --git a/commit-jprojects.sh b/commit-jprojects.sh index 31bac12..8681064 100755 --- a/commit-jprojects.sh +++ b/commit-jprojects.sh @@ -1,29 +1,29 @@ -#!/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 +#!/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