X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=commit-jprojects.sh;h=48ce900ff5bee48b3762047e7357e838cc0e5bf9;hb=HEAD;hp=88ec307def8d200c8b96462565b891da7635d86d;hpb=83c0e8588815d0afd7126bd2d46c47a1bf8c3d9d;p=jprojects-scripts.git diff --git a/commit-jprojects.sh b/commit-jprojects.sh index 88ec307..48ce900 100755 --- a/commit-jprojects.sh +++ b/commit-jprojects.sh @@ -22,6 +22,7 @@ for project in ${LIST}; do if [ "$1" = "updated jar(s)" ] then # Special commit ... (known-binaries) + git add lib/ || exit 255 git commit --signoff -S lib/*.jar -m "$1" elif [ "$1" = "updated dist.sh" ] then @@ -30,10 +31,12 @@ for project in ${LIST}; do elif [ -n "$1" -a -n "$2" ] then # Regular commit with given message + git add $2 || exit 255 git commit $2 --signoff -S -m "$1" || exit 255 elif [ -d "$1" -o -f "$1" ] then # Limited commit with no message + git add $1 || exit 255 git commit $1 --signoff -S || exit 255 elif [ -n "$1" ] then