From 31ceb350fd06ee7bce133cce3f13a991076d0a01 Mon Sep 17 00:00:00 2001 From: oGre Date: Thu, 2 Jun 2016 20:56:47 +0200 Subject: [PATCH] Fixed quoting to just around the first parameter --- gitprompt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitprompt.sh b/gitprompt.sh index 913d0a9..750ee83 100755 --- a/gitprompt.sh +++ b/gitprompt.sh @@ -482,7 +482,7 @@ function updatePrompt() { if [[ "x$2" == "x-n" ]] ; then v="$2 \"\$GIT_$1\"" else - v="\"\$GIT_$1 $2\"" + v="\"\$GIT_$1\" $2" fi if eval "test $v" ; then if [[ $# -lt 2 || "$3" != '-' ]]; then