summaryrefslogtreecommitdiff
path: root/git-status-script
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2005-09-02 10:53:15 -0700
committerLibravatar Junio C Hamano <junkio@cox.net>2005-09-02 10:53:15 -0700
commit86b13da46cd710a45a89968880c691452d5b70b4 (patch)
tree81351ad18d082a8046bed144532c70ecc1e8d8ea /git-status-script
parentgit-checkout-script: Remove unnecessary variable. (diff)
downloadtgif-86b13da46cd710a45a89968880c691452d5b70b4.tar.xz
scripts: equality test '==' is not portable.
On NetBSD 3 we trigger an error: [: ==: unexpected operator Double-equal is accepted by bash built-in '[' and bash(1) suggests using '=' for strict POSIX compliance (test(1) from coreutils does not mention '=='). Eradicate their uses everywhere. [jc: Somebody with a pseudonym kindly sent a message to let me know about the problem privately; I do not have access to a NetBSD box.] Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-status-script')
-rwxr-xr-xgit-status-script6
1 files changed, 3 insertions, 3 deletions
diff --git a/git-status-script b/git-status-script
index 2b029545de..ee8f7061ea 100755
--- a/git-status-script
+++ b/git-status-script
@@ -77,9 +77,9 @@ then
#'
fi
-if [ "$committable" == "0" ]
-then
+case "$committable" in
+0)
echo "nothing to commit"
exit 1
-fi
+esac
exit 0