fix: fix Rector downgrading

See https://github.com/rectorphp/rector/issues/6315
This commit is contained in:
Ben Goldsworthy 2021-05-12 08:18:15 +01:00
parent f8d5d73443
commit 94c480900a
4 changed files with 63 additions and 42 deletions

View file

@ -34,6 +34,10 @@ echo "Deleting unminified files from `dist/`..."
rm -r dist/*/{js,css}/*[^\.min].{js,css}
echo "Minification complete."
echo "Downgrading to PHP 7.4..."
./vendor/bin/rector process
echo "Downgrading complete."
if [[ $1 == "-v" ]]; then
rm -rf ../VVV/www/wordpress-two/public_html/wp-content/plugins/footnotes
mv dist footnotes && mv footnotes ../VVV/www/wordpress-two/public_html/wp-content/plugins