Last active
September 25, 2019 18:35
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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