From 00558b8de8ad43c7522651d517ac9baadd417ad0 Mon Sep 17 00:00:00 2001 From: Dan Nguyen Date: Mon, 21 Sep 2015 10:19:26 -0500 Subject: [PATCH] fix substring indexing --- gitstatus.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitstatus.sh b/gitstatus.sh index 234926d..0d58678 100755 --- a/gitstatus.sh +++ b/gitstatus.sh @@ -69,7 +69,7 @@ else remote="${remote}_AHEAD_${num_ahead}" fi if [[ "${remote_line[1]}" == *behind* ]]; then - num_behind=${remote_line[1]:9} + num_behind=${remote_line[1]:8} remote="${remote}_BEHIND_${num_behind}" fi fi