summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-12-14 02:19:12 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-12-14 10:53:45 (GMT)
commit5073eb04d6f0e8ac2578140b9231817e2afefe50 (patch)
tree5fab66e2b466d4309424bfa6f6e93df5c46f6970
parent9678faaaffd3eba057bf1cb643399c5a5365a611 (diff)
downloadgit-5073eb04d6f0e8ac2578140b9231817e2afefe50.zip
git-5073eb04d6f0e8ac2578140b9231817e2afefe50.tar.gz
git-5073eb04d6f0e8ac2578140b9231817e2afefe50.tar.bz2
applypatch: no need to do non-portable [[ ... ]]
... when old, proven, case would do. Signed-off-by: Junio C Hamano <junkio@cox.net>
-rwxr-xr-xgit-applypatch.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-applypatch.sh b/git-applypatch.sh
index 214f5c3..e8ba34a 100755
--- a/git-applypatch.sh
+++ b/git-applypatch.sh
@@ -14,7 +14,7 @@
USAGE='<msg> <patch> <info> [<signoff>]'
. git-sh-setup
-[[ "$#" = "3" || "$#" = "4" ]] || usage
+case "$#" in 3|4) usage ;; esac
final=.dotest/final-commit
##