From: Junio C Hamano Date: Sun, 12 Feb 2006 21:13:12 +0000 (-0800) Subject: Fix "test: unexpected operator" on bsd X-Git-Tag: v1.2.0~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4bbdfab766782dc06ac496730e3a578bd35d67c5;p=git.git Fix "test: unexpected operator" on bsd This fixes the same issue as a previous fix by Alex Riesen does. Signed-off-by: Junio C Hamano --- diff --git a/git-sh-setup.sh b/git-sh-setup.sh index 157c7e4d6..025ef2d5f 100755 --- a/git-sh-setup.sh +++ b/git-sh-setup.sh @@ -42,7 +42,7 @@ then # Make sure we are in a valid repository of a vintage we understand. GIT_DIR="$GIT_DIR" git repo-config --get core.nosuch >/dev/null - if test $? == 128 + if test $? = 128 then exit fi