Skip to content

Instantly share code, notes, and snippets.

@camoa
Last active September 25, 2019 18:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save camoa/4504cdea4bb1ef0b87edd4bf243953e0 to your computer and use it in GitHub Desktop.
Save camoa/4504cdea4bb1ef0b87edd4bf243953e0 to your computer and use it in GitHub Desktop.
A front end tolols install for VBLT multisites looking for ways to move between folders easily (as they add more folders to the themes)
#!/bin/bash
#locate the script in the themes folder
cd docroot/themes/custom
themes=$(find . -type d -maxdepth 1)
for theme in "${themes[@]}"; do
echo "Checking theme $theme\n"
if [ ! -e "$theme/node_modules" ];then
cd $theme
npm install
cd ..
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment