X-Git-Url: https://git.mxchange.org/?p=jprojects-scripts.git;a=blobdiff_plain;f=commit-jprojects.sh;h=88ec307def8d200c8b96462565b891da7635d86d;hp=deff10f8ae75d514bac79c52a56b76e867e778fe;hb=83c0e8588815d0afd7126bd2d46c47a1bf8c3d9d;hpb=97c1c6379668a0d22905551988e4876163f4438c diff --git a/commit-jprojects.sh b/commit-jprojects.sh index deff10f..88ec307 100755 --- a/commit-jprojects.sh +++ b/commit-jprojects.sh @@ -23,10 +23,18 @@ for project in ${LIST}; do then # Special commit ... (known-binaries) git commit --signoff -S lib/*.jar -m "$1" + elif [ "$1" = "updated dist.sh" ] + then + # Special commit ... (known shell script) + git commit --signoff -S "dist.sh" -m "$1" elif [ -n "$1" -a -n "$2" ] then # Regular commit with given message git commit $2 --signoff -S -m "$1" || exit 255 + elif [ -d "$1" -o -f "$1" ] + then + # Limited commit with no message + git commit $1 --signoff -S || exit 255 elif [ -n "$1" ] then # Regular commit with given message