From: Alex Riesen Date: Mon, 28 Apr 2008 21:09:55 +0000 (+0200) Subject: Use "=" instead of "==" in condition as it is more portable X-Git-Tag: v1.5.5.2~15 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e42251a221e44c0bd8438019da1c307def9a4ca8;p=git.git Use "=" instead of "==" in condition as it is more portable At least the dash from Ubuntu's /bin/sh says: test: 233: ==: unexpected operator Signed-off-by: Alex Riesen Signed-off-by: Junio C Hamano --- diff --git a/git-clone.sh b/git-clone.sh index 9e433c080..8c7fc7f63 100755 --- a/git-clone.sh +++ b/git-clone.sh @@ -219,7 +219,7 @@ fi if test -n "$2" then dir="$2" - test $# == 2 || die "excess parameter to git-clone" + test $# = 2 || die "excess parameter to git-clone" else # Derive one from the repository name # Try using "humanish" part of source repo if user didn't specify one