mirror of
https://github.com/N0rthernL1ghts/wordpress.git
synced 2025-04-25 18:05:40 +02:00
Mark PLUGIN_PATH as mandatory variable
This commit is contained in:
parent
f81ec4c67e
commit
4fc19fa5e7
@ -18,7 +18,7 @@ function scriptExitHandler() {
|
|||||||
function isPluginInstalled() {
|
function isPluginInstalled() {
|
||||||
PLUGIN="${1:?PLUGIN is required}"
|
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
|
return 0
|
||||||
fi
|
fi
|
||||||
return 1
|
return 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user