Skip to content

Commit

Permalink
Use "=" instead of "==" in condition as it is more portable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alex Riesen authored and Junio C Hamano committed Apr 28, 2008
1 parent a2b26ac commit e42251a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-clone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e42251a

Please sign in to comment.