Fix bashism error in gitprompt

This commit is contained in:
Talia 2020-01-13 09:16:28 +01:00
parent 3bfbcd7c06
commit 8452b4261c

View file

@ -78,7 +78,7 @@ git__prompt () {
if [ "$branch" = 'master' ]
then
/bin/echo -ne " $blue$branch"
elif [ $(echo "${branch:0:1}" | grep '^#' ) ]
elif [ $(echo "$branch" | grep '^#' ) ]
then
/bin/echo -ne " $red$branch"
else