From 5f5ea03dc57b8aca2a8f8ac938d044dcd110d57a Mon Sep 17 00:00:00 2001 From: Michael Allen Date: Fri, 16 Oct 2015 13:52:54 +0100 Subject: Strip spaces from the stash number (which OSX wc adds for no reason) --- radar-base.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radar-base.sh b/radar-base.sh index f3b0d49..c355f3c 100755 --- a/radar-base.sh +++ b/radar-base.sh @@ -503,7 +503,7 @@ show_remote_status() { } stashed_status() { - printf '%s' "$(git stash list | wc -l 2>/dev/null)" + printf '%s' "$(git stash list | wc -l 2>/dev/null | grep -oEi '[0-9][0-9]*')" } stash_status() { -- cgit v1.2.3