From afd6dc66684b2189141f31ae957267c302bbb1f5 Mon Sep 17 00:00:00 2001 From: Ceda EI Date: Tue, 31 Dec 2019 13:32:02 +0530 Subject: [PATCH] Make WISH_PLUGINS_SOURCE backwards compatible --- wish.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wish.sh b/wish.sh index a139ea4..0f8fbdb 100644 --- a/wish.sh +++ b/wish.sh @@ -27,6 +27,11 @@ function wish_init() { fi done # Source all plugins + # If WISH_CONFIG_FILE is not set, then assume that the user hasn't updated + # to a config file yet. Set WISH_PLUGINS_SOURCE=WISH_PLUGINS. + if [[ ! -v WISH_CONFIG_FILE ]]; then + WISH_PLUGINS_SOURCE=("${WISH_PLUGINS[@]}" "${WISH_RIGHT_PLUGINS[@]}") + fi local plugin local path for plugin in ${WISH_PLUGINS_SOURCE[@]}; do