aks: don't cause errors if the git-prompt-colors.sh file is missing

master
Alan Stebbens 12 years ago
parent ae1c1d1ef0
commit 4e7fcb290b
  1. 2
      gitprompt.sh

@ -60,7 +60,7 @@ function git_prompt_config()
done done
fi fi
# if the envar is defined, source the file for custom colors # 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" source "$__GIT_PROMPT_COLORS_FILE"
else else
# Default values for the appearance of the prompt. Do not change these # Default values for the appearance of the prompt. Do not change these

Loading…
Cancel
Save