]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Use "=" instead of "==" in condition as it is more portable
authorAlex Riesen <raa.lkml@gmail.com>
Mon, 28 Apr 2008 21:09:55 +0000 (23:09 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 28 Apr 2008 22:03:28 +0000 (15:03 -0700)
At least the dash from Ubuntu's /bin/sh says:

    test: 233: ==: unexpected operator

Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-clone.sh

index 9e433c08086f3a80c91cc9dae1e48c88723b82f8..8c7fc7f6317113fcef923dcc625fb94e13fb77a0 100755 (executable)
@@ -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