Fix bashism error in gitprompt

This commit is contained in:
Talia 2020-01-13 09:16:28 +01:00
parent 3bfbcd7c06
commit 8452b4261c
1 changed files with 1 additions and 1 deletions

View File

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