Make WISH_PLUGINS_SOURCE backwards compatible

This commit is contained in:
Ceda EI 2019-12-31 13:32:02 +05:30
parent e01b29d4a0
commit afd6dc6668
1 changed files with 5 additions and 0 deletions

View File

@ -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