Skip to content

Instantly share code, notes, and snippets.

@camoa
Last active September 25, 2019 19:03
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 camoa/eb327424ecd4d867ffec55ff8e5e4b67 to your computer and use it in GitHub Desktop.
Save camoa/eb327424ecd4d867ffec55ff8e5e4b67 to your computer and use it in GitHub Desktop.
Script to compile assets for theme's
#!/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