From 4e7fcb290b4bc7b9ac012e70bc32298ff39df0e1 Mon Sep 17 00:00:00 2001 From: Alan Stebbens Date: Fri, 24 Jan 2014 01:13:32 -0800 Subject: [PATCH] aks: don't cause errors if the git-prompt-colors.sh file is missing --- gitprompt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitprompt.sh b/gitprompt.sh index 54595bb..fc21851 100755 --- a/gitprompt.sh +++ b/gitprompt.sh @@ -60,7 +60,7 @@ function git_prompt_config() done fi # if the envar is defined, source the file for custom colors - if [[ -n "$__GIT_PROMPT_COLORS_FILE" ]]; then + if [[ -n "$__GIT_PROMPT_COLORS_FILE" && -f "$__GIT_PROMPT_COLORS_FILE" ]]; then source "$__GIT_PROMPT_COLORS_FILE" else # Default values for the appearance of the prompt. Do not change these