Last active
September 25, 2019 19:03
-
-
Save camoa/eb327424ecd4d867ffec55ff8e5e4b67 to your computer and use it in GitHub Desktop.
Script to compile assets for theme's
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/gulpfile.js" ];then | |
cd $theme | |
gulp build | |
cd .. | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment