From d79a310ed16e7321d4323dd0c363e9e488ea9390 Mon Sep 17 00:00:00 2001 From: TJ Holowaychuk Date: Tue, 27 Mar 2012 08:01:59 -0700 Subject: [PATCH] fixed git-repl conditional --- bin/git-repl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/git-repl b/bin/git-repl index c92a954..bdac2ea 100755 --- a/bin/git-repl +++ b/bin/git-repl @@ -5,8 +5,7 @@ while true; do cur=`git symbolic-ref HEAD 2> /dev/null | cut -d/ -f3-` # Prompt - if [ $cur ] - then + if test -n "$cur"; then prompt="git ($cur)> " else prompt="git> "