From 89acb1c4b0925cf40d1d016c2610552836f310db Mon Sep 17 00:00:00 2001 From: oGre Date: Sun, 27 Sep 2015 18:43:30 +0200 Subject: [PATCH] Changed to match tabs and spaces --- gitstatus.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitstatus.sh b/gitstatus.sh index c2a8e40..9b763e0 100755 --- a/gitstatus.sh +++ b/gitstatus.sh @@ -41,7 +41,7 @@ else stash_file="$( git rev-parse --git-dir )/logs/refs/stash" if [[ -e "${stash_file}" ]]; then wc_output=$( wc -l < "${stash_file}" ) - num_stashed=${wc_output// /} + num_stashed=${wc_output//[[:space:]]/} else num_stashed=0 fi