Fix bashism error in gitprompt
This commit is contained in:
parent
3bfbcd7c06
commit
8452b4261c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue