From 8e9faff94949907b40e2eaf8738b5b8da0e6cb48 Mon Sep 17 00:00:00 2001 From: Dan Nguyen Date: Sun, 20 Sep 2015 15:55:36 -0500 Subject: [PATCH] Fix issue parsing where there is no remote branch --- gitstatus.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitstatus.sh b/gitstatus.sh index 59f3673..dbc0bc9 100755 --- a/gitstatus.sh +++ b/gitstatus.sh @@ -46,7 +46,7 @@ fi remote= -branch_line=`echo $gitstatus | grep "^##"` +branch_line=`echo "$gitstatus" | grep "^##"` IFS="." read -ra line <<< "${branch_line/\#\# }" branch="${line[0]}"