From fd34847175fda9913bc3b081fd1bace0288bdbb7 Mon Sep 17 00:00:00 2001 From: Jose Tiago Macara Coutinho Date: Thu, 2 Jun 2016 08:07:00 +0200 Subject: [PATCH] Solves issue #252: error message in prompt with old bash version --- gitprompt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitprompt.sh b/gitprompt.sh index cad311c..913d0a9 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