diff options
author | Michael Allen <michael@michaelallen.io> | 2015-10-16 13:52:54 +0100 |
---|---|---|
committer | Michael Allen <michael@michaelallen.io> | 2015-10-16 13:54:42 +0100 |
commit | 5f5ea03dc57b8aca2a8f8ac938d044dcd110d57a (patch) | |
tree | 190fd34a16f160913668d8bc7b0a32cb6b4f4fd6 | |
parent | 6b3360f2a00b55043d2dba574223c6ba77e76580 (diff) | |
download | git-sonar-5f5ea03dc57b8aca2a8f8ac938d044dcd110d57a.tar.gz git-sonar-5f5ea03dc57b8aca2a8f8ac938d044dcd110d57a.zip |
Strip spaces from the stash number (which OSX wc adds for no reason)
-rwxr-xr-x | radar-base.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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() { |