Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. #locate the script in the themes folder
  4. cd docroot/themes/custom
  5.  
  6. themes=$(find . -type d -maxdepth 1)
  7. for theme in "${themes[@]}"; do
  8. echo "Checking theme $theme\n"
  9. if [ ! -e "$theme/gulpfile.js" ];then
  10. cd $theme
  11. gulp build
  12. cd ..
  13. fi
  14. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement