Mark PLUGIN_PATH as mandatory variable

This commit is contained in:
Aleksandar Puharic 2023-03-15 02:38:24 +01:00
parent f81ec4c67e
commit 4fc19fa5e7
Signed by: xZero707
GPG Key ID: 3CC53DCAA9C237BB

View File

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