From c41860611d48da18aac15142b04c1a5ec7a7e2e2 Mon Sep 17 00:00:00 2001 From: xZero707 Date: Wed, 15 Mar 2023 02:54:31 +0100 Subject: [PATCH] Revert "Mark PLUGIN_PATH as mandatory variable" This reverts commit 4fc19fa5e70735080fdf13e964ab1ebeb0626782. --- 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 36b1cb1..466fd50 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