From: Junio C Hamano Date: Thu, 20 Dec 2007 20:58:06 +0000 (-0800) Subject: shell-scripts usage(): consistently exit with non-zero X-Git-Tag: v1.5.4-rc2~27 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5d29275638f48ee442202f0c478d1d8b9d396cc6;p=git.git shell-scripts usage(): consistently exit with non-zero Earlier conversion of shell scripts to parse-options made usage() to run "git cmd -h" which in turn emit LONG_USAGE and exit with 0 status. This is inconsistent with the scripts that do not use parse-options, whose usage() died with the message, exiting with 1. Signed-off-by: Junio C Hamano --- diff --git a/git-sh-setup.sh b/git-sh-setup.sh index 270d55929..aae14090b 100755 --- a/git-sh-setup.sh +++ b/git-sh-setup.sh @@ -18,7 +18,8 @@ die() { if test -n "$OPTIONS_SPEC"; then usage() { - exec "$0" -h + "$0" -h + exit 1 } parseopt_extra=