Skip to contentSkip to conversation

git-new-workdir: Fix shell warning about operator == used with test.

PATCH In review Simon Hausmann 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 git-new-workdir: Fix shell warning about operator == used with test.

Use = instead of == with test to test for equality.

---
 contrib/workdir/git-new-workdir |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
contrib/workdir/git-new-workdir +1 -1
index 709b2a3..3ff6bd1 100755
@@ -24,7 +24,7 @@ git_dir=$(cd "$orig_git" 2>/dev/null &&
   git rev-parse --git-dir 2>/dev/null) ||
   die "\"$orig_git\" is not a git repository!"
 
-if test "$git_dir" == ".git"
+if test "$git_dir" = ".git"
 then
 	git_dir="$orig_git/.git"
 fi
Signature · 1 line
1.5.2.2.549.gaeb59