diff --git a/gitstatus.sh b/gitstatus.sh index e01e00d..3b87cf0 100755 --- a/gitstatus.sh +++ b/gitstatus.sh @@ -40,7 +40,7 @@ if [[ "$__GIT_PROMPT_IGNORE_STASH" = "1" ]]; then else stash_file="$( git rev-parse --git-dir )/logs/refs/stash" if [[ -e "${stash_file}" ]]; then - num_stashed=$( wc -l "${stash_file}" | cut -d' ' -f1 ) + num_stashed=$( wc -l < "${stash_file}" | tr -s ' ' | cut -d ' ' -f2 ) else num_stashed=0 fi