Fixed quoting to just around the first parameter

master
oGre 10 years ago
parent 093734c86a
commit 31ceb350fd
  1. 2
      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

Loading…
Cancel
Save