From 8452b4261cf82076808a8c17c96ec19ab6d7ae19 Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Mon, 13 Jan 2020 09:16:28 +0100 Subject: [PATCH] Fix bashism error in gitprompt --- bin/gitprompt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/gitprompt b/bin/gitprompt index 829807b..7e59c03 100755 --- a/bin/gitprompt +++ b/bin/gitprompt @@ -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