SHARE
TWEET

Untitled

a guest Oct 14th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top