From 7ad495bd0536dca856c777660636ec46ea69df4b Mon Sep 17 00:00:00 2001 From: Solomon Laing Date: Sat, 4 Jun 2022 17:35:27 +0930 Subject: [PATCH] more updates --- scripts/bash-status-git | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/bash-status-git b/scripts/bash-status-git index 3454f5f..de0a389 100755 --- a/scripts/bash-status-git +++ b/scripts/bash-status-git @@ -2,10 +2,9 @@ if git status &>/dev/null; then branch=$(git branch --show-current) - if [[ $(git diff --shortstat 2> /dev/null | tail -n1) != "" ]]; then - echo "($branch~)" - else echo "($branch*)" + else + echo "($branch~)" fi fi