From 4fc19fa5e70735080fdf13e964ab1ebeb0626782 Mon Sep 17 00:00:00 2001 From: xZero707 Date: Wed, 15 Mar 2023 02:38:24 +0100 Subject: [PATCH] Mark PLUGIN_PATH as mandatory variable --- rootfs/etc/cont-init.d/20-install-plugins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rootfs/etc/cont-init.d/20-install-plugins b/rootfs/etc/cont-init.d/20-install-plugins index 466fd50..36b1cb1 100755 --- a/rootfs/etc/cont-init.d/20-install-plugins +++ b/rootfs/etc/cont-init.d/20-install-plugins @@ -18,7 +18,7 @@ function scriptExitHandler() { function isPluginInstalled() { PLUGIN="${1:?PLUGIN is required}" - if [ -d "${PLUGIN_PATH}" ] && [ -f "${PLUGIN_PATH}/${PLUGIN}.php" ]; then + if [ -d "${PLUGIN_PATH:?}" ] && [ -f "${PLUGIN_PATH:?}/${PLUGIN}.php" ]; then return 0 fi return 1