Commit 51e280e4 authored by okhin's avatar okhin 🚴

Fixing the for loop

parent f1a0738f
Pipeline #2473 passed with stage
in 2 seconds
#!/bin/bash -x
#!/bin/bash
#
# Installation via wpcli d'un site wordpress. Ce script a besoin d'un fichier site.env
# passé en premier argument pour définir certaines variables nécessaire au fonctionnement du site.
......@@ -34,7 +34,7 @@ zip ${THEME}.zip -r * -x .git\* -x scripts
$WPCLI theme install ./${THEME}.zip ${PREPROD:+"--force"} --activate --url=${URL} || echo "Oops install of ${THEME}.zip went bad" || return 1
# Activation des plugins
for $PLUGIN in $PLUGINS
for PLUGIN in $PLUGINS
do
$WPCLI plugin activate $PLUGIN --url=${URL} || echo "Can't activate plugin $PLUGIN for site $TITLE"
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment