From db55c63c774674d794cf6b765dd6159b12e4d65b Mon Sep 17 00:00:00 2001 From: Ethan Edwards Date: Tue, 6 Feb 2018 11:08:44 -0600 Subject: [PATCH] GH-1142 add behavior to address using set -e --- themes/base.theme.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/base.theme.bash b/themes/base.theme.bash index a18c3729..e27cd5f1 100644 --- a/themes/base.theme.bash +++ b/themes/base.theme.bash @@ -125,8 +125,8 @@ function scm_prompt_info_common { fi # TODO: consider adding minimal status information for hg and svn - [[ ${SCM} == ${SCM_HG} ]] && hg_prompt_info && return - [[ ${SCM} == ${SCM_SVN} ]] && svn_prompt_info && return + { [[ ${SCM:-} == ${SCM_HG} ]] && hg_prompt_info && return; } || true + { [[ ${SCM:-} == ${SCM_SVN} ]] && svn_prompt_info && return; } || true } function git_prompt_minimal_info {