From d1e2330ae0b8da648c22600c04955ed44400c435 Mon Sep 17 00:00:00 2001 From: Dan Nguyen Date: Wed, 7 Sep 2016 13:04:11 -0500 Subject: [PATCH] Fix gitstatus.sh to produce output when ran standalone --- gitstatus.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitstatus.sh b/gitstatus.sh index 19e3dee..68ff511 100755 --- a/gitstatus.sh +++ b/gitstatus.sh @@ -15,7 +15,7 @@ if [ -z "${__GIT_PROMPT_DIR}" ]; then __GIT_PROMPT_DIR="$( cd -P "$( dirname "${SOURCE}" )" && pwd )" fi -gitstatus=$( LC_ALL=C git status --untracked-files=${__GIT_PROMPT_SHOW_UNTRACKED_FILES} --porcelain --branch ) +gitstatus=$( LC_ALL=C git status --untracked-files=${__GIT_PROMPT_SHOW_UNTRACKED_FILES:-all} --porcelain --branch ) # if the status is fatal, exit now [[ "$?" -ne 0 ]] && exit 0