From 91b6561e93a35fa4aefe19c408073d599676c917 Mon Sep 17 00:00:00 2001 From: Noah Gorny Date: Sat, 5 Sep 2020 22:52:19 +0300 Subject: [PATCH] gitstatus: Add informative warning in case dir is not found --- plugins/available/gitstatus.plugin.bash | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/available/gitstatus.plugin.bash b/plugins/available/gitstatus.plugin.bash index 98df693e..9df65a82 100644 --- a/plugins/available/gitstatus.plugin.bash +++ b/plugins/available/gitstatus.plugin.bash @@ -21,4 +21,6 @@ if [[ -d ${SCM_GIT_GITSTATUS_DIR} ]]; then # Start the actual gitstatus binary gitstatus_stop && gitstatus_start -s -1 -u -1 -c -1 -d -1 export SCM_GIT_USE_GITSTATUS=true +else + _log_warning "Could not find gitstatus directory in ${SCM_GIT_GITSTATUS_DIR}. Please specify directory location using SCM_GIT_GITSTATUS_DIR." fi