Merge pull request #253 from tiagocoutinho/master

Solves issue #252: error message in prompt with old bash version
master
Martin Gondermann 10 years ago
commit 093734c86a
  1. 2
      gitprompt.sh

@ -482,7 +482,7 @@ function updatePrompt() {
if [[ "x$2" == "x-n" ]] ; then if [[ "x$2" == "x-n" ]] ; then
v="$2 \"\$GIT_$1\"" v="$2 \"\$GIT_$1\""
else else
v="\$GIT_$1 $2" v="\"\$GIT_$1 $2\""
fi fi
if eval "test $v" ; then if eval "test $v" ; then
if [[ $# -lt 2 || "$3" != '-' ]]; then if [[ $# -lt 2 || "$3" != '-' ]]; then

Loading…
Cancel
Save