Skip to content

Commit 093734c

Browse files
committed
Merge pull request #253 from tiagocoutinho/master
Solves issue #252: error message in prompt with old bash version
2 parents def903b + fd34847 commit 093734c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitprompt.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ function updatePrompt() {
482482
if [[ "x$2" == "x-n" ]] ; then
483483
v="$2 \"\$GIT_$1\""
484484
else
485-
v="\$GIT_$1 $2"
485+
v="\"\$GIT_$1 $2\""
486486
fi
487487
if eval "test $v" ; then
488488
if [[ $# -lt 2 || "$3" != '-' ]]; then

0 commit comments

Comments
 (0)