Skip to content

Commit b658d50

Browse files
tronicalgitster
authored andcommitted
git-new-workdir: Fix shell warning about operator == used with test.
Use = instead of == with test to test for equality. Signed-off-by: Simon Hausmann <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 4fb8c80 commit b658d50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/workdir/git-new-workdir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ git_dir=$(cd "$orig_git" 2>/dev/null &&
2424
git rev-parse --git-dir 2>/dev/null) ||
2525
die "\"$orig_git\" is not a git repository!"
2626

27-
if test "$git_dir" == ".git"
27+
if test "$git_dir" = ".git"
2828
then
2929
git_dir="$orig_git/.git"
3030
fi

0 commit comments

Comments
 (0)