summaryrefslogtreecommitdiff
path: root/git-sh-setup.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-12-20 20:58:06 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-12-20 20:58:06 (GMT)
commit5d29275638f48ee442202f0c478d1d8b9d396cc6 (patch)
tree45752dca1baa2d91d35a4d265e7ffd9dc47093d6 /git-sh-setup.sh
parent03270628ed61f56431658eacd335b8f2f8ecc05a (diff)
downloadgit-5d29275638f48ee442202f0c478d1d8b9d396cc6.zip
git-5d29275638f48ee442202f0c478d1d8b9d396cc6.tar.gz
git-5d29275638f48ee442202f0c478d1d8b9d396cc6.tar.bz2
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 <gitster@pobox.com>
Diffstat (limited to 'git-sh-setup.sh')
-rwxr-xr-xgit-sh-setup.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/git-sh-setup.sh b/git-sh-setup.sh
index 270d559..aae1409 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=