From 66f49658a1b6346b4af195aad4a213ee0b0d3bef Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Wed, 15 Jan 2020 14:35:35 +0100 Subject: [PATCH] Fix error in Gir prompt script --- bin/gitprompt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/gitprompt b/bin/gitprompt index a093258..82fb7b2 100755 --- a/bin/gitprompt +++ b/bin/gitprompt @@ -68,7 +68,7 @@ git__prompt () { if [ -z "$branch" ] then head=$(git rev-parse --short HEAD 2>&1) - if [ $(echo "$head" | grep '^fatal') ] + if [ "$(echo "$head" | grep '^fatal')" ] then branch='{no commits}' else