Make friendly to set -u

This commit is contained in:
Steven Shaw 2015-05-11 07:27:21 +00:00
commit 5c1cf2feea
8 changed files with 18 additions and 18 deletions

View file

@ -17,7 +17,7 @@ parse_git_dirty() {
if [[ $POST_1_7_2_GIT -gt 0 ]]; then
FLAGS+='--ignore-submodules=dirty'
fi
if [[ "$DISABLE_UNTRACKED_FILES_DIRTY" == "true" ]]; then
if [[ "${DISABLE_UNTRACKED_FILES_DIRTY:-}" == "true" ]]; then
FLAGS+='--untracked-files=no'
fi
STATUS=$(command git status ${FLAGS} 2> /dev/null | tail -n1)