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 <raa.lkml@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>maint
parent
a2b26acd7a
commit
e42251a221
|
@ -219,7 +219,7 @@ fi
|
||||||
if test -n "$2"
|
if test -n "$2"
|
||||||
then
|
then
|
||||||
dir="$2"
|
dir="$2"
|
||||||
test $# == 2 || die "excess parameter to git-clone"
|
test $# = 2 || die "excess parameter to git-clone"
|
||||||
else
|
else
|
||||||
# Derive one from the repository name
|
# Derive one from the repository name
|
||||||
# Try using "humanish" part of source repo if user didn't specify one
|
# Try using "humanish" part of source repo if user didn't specify one
|
||||||
|
|
Loading…
Reference in New Issue