Skip to content

Instantly share code, notes, and snippets.

@ramonfincken
Created December 21, 2017 07:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ramonfincken/4c2c29f4a5b209280cd436f8f827b9e5 to your computer and use it in GitHub Desktop.
Save ramonfincken/4c2c29f4a5b209280cd436f8f827b9e5 to your computer and use it in GitHub Desktop.
WordPress Composer multiple mu-plugins fix: muplugins.sh
#!/bash
# Author: Ramon Fincken, https://www.mijnpress.nl
BASEDIR=web/app/mu-plugins
muplugindirs=`ls $BASEDIR`
for i in $muplugindirs
do
if [[ -d ${BASEDIR}/${i} ]]
then
cd ${BASEDIR}/${i}
mv *.php ../
cd -
rm -rf ${BASEDIR}/${i}
fi
done
@ramonfincken
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment