mirror of
https://github.com/N0rthernL1ghts/wordpress.git
synced 2025-04-13 07:33:09 +02:00
Optimise further
This commit is contained in:
parent
910f24dbcf
commit
db04d0acf1
@ -15,12 +15,6 @@ echo "> About to install defined plugins"
|
|||||||
for PLUGIN_EXPR in ${PLUGIN_LIST}; do
|
for PLUGIN_EXPR in ${PLUGIN_LIST}; do
|
||||||
IFS=':' read -ra PLUGIN <<<"${PLUGIN_EXPR}"
|
IFS=':' read -ra PLUGIN <<<"${PLUGIN_EXPR}"
|
||||||
|
|
||||||
WP_PLUGIN_INSTALL_ARGS="${PLUGIN[0]}"
|
|
||||||
|
|
||||||
if [ -n "${PLUGIN[1]}" ]; then
|
|
||||||
WP_PLUGIN_INSTALL_ARGS="${WP_PLUGIN_INSTALL_ARGS} --version=${PLUGIN[1]}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
PLUGIN_PATH="${WP_CONTENT_PATH}/plugins/${PLUGIN[0]}"
|
PLUGIN_PATH="${WP_CONTENT_PATH}/plugins/${PLUGIN[0]}"
|
||||||
|
|
||||||
if [ -d "${PLUGIN_PATH}" ] || [ -f "${PLUGIN_PATH}.php" ]; then
|
if [ -d "${PLUGIN_PATH}" ] || [ -f "${PLUGIN_PATH}.php" ]; then
|
||||||
@ -28,6 +22,12 @@ for PLUGIN_EXPR in ${PLUGIN_LIST}; do
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
WP_PLUGIN_INSTALL_ARGS="${PLUGIN[0]}"
|
||||||
|
|
||||||
|
if [ -n "${PLUGIN[1]}" ]; then
|
||||||
|
WP_PLUGIN_INSTALL_ARGS="${WP_PLUGIN_INSTALL_ARGS} --version=${PLUGIN[1]}"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "> Installing plugin '${PLUGIN[0]}' version '${PLUGIN[1]}'"
|
echo "> Installing plugin '${PLUGIN[0]}' version '${PLUGIN[1]}'"
|
||||||
wp plugin install ${WP_PLUGIN_INSTALL_ARGS}
|
wp plugin install ${WP_PLUGIN_INSTALL_ARGS}
|
||||||
done
|
done
|
Loading…
x
Reference in New Issue
Block a user