summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xstatus.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/status.sh b/status.sh
index 96d1012..a1ec169 100755
--- a/status.sh
+++ b/status.sh
@@ -7,7 +7,7 @@ function status {
DIR=`pwd`
cd "$1"
STR=`git diff --stat --color=always`
- STR2=`git status|grep "Your branch is ahead"`
+ STR2=`git status|grep -E "Your branch is (behind|ahead)"`
STR3=`git status -s -uno`
if [[ -n "${STR}${STR2}${STR3}" ]]; then
echo -e "$2:"