From db6f2195538982482feba56ae411d78ed391d252 Mon Sep 17 00:00:00 2001 From: Dan Nguyen Date: Thu, 24 Sep 2015 10:40:18 -0500 Subject: [PATCH] Reorder AHEAD and BEHIND --- gitstatus.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gitstatus.sh b/gitstatus.sh index 100b335..04bce5a 100755 --- a/gitstatus.sh +++ b/gitstatus.sh @@ -77,13 +77,14 @@ else for rline in "${remote_line[@]}"; do if [[ "$rline" == *ahead* ]]; then num_ahead=${rline:6} - remote="${remote}_AHEAD_${num_ahead}" + ahead="_AHEAD_${num_ahead}" fi if [[ "$rline" == *behind* ]]; then num_behind=${rline:7} - remote="${remote}_BEHIND_${num_behind# }" + behind="_BEHIND_${num_behind# }" fi done + remote="${behind}${ahead}" fi if [[ -z "$remote" ]] ; then