applypatch: no need to do non-portable [[ ... ]]
authorJunio C Hamano <junkio@cox.net>
Wed, 14 Dec 2005 02:19:12 +0000 (18:19 -0800)
committerJunio C Hamano <junkio@cox.net>
Wed, 14 Dec 2005 10:53:45 +0000 (02:53 -0800)
... when old, proven, case would do.

Signed-off-by: Junio C Hamano <junkio@cox.net>
git-applypatch.sh

index 214f5c31a6020ae63b4fee3c245156717d536252..e8ba34a0ad4a466083c8462cc038de9d8ad6a4ab 100755 (executable)
@@ -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
 ##