Guest User

Untitled

a guest
Dec 14th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. # Usage: git-bulk.sh <base-dir> "<git-command>"
  2.  
  3. NEON_GREEN="\033[0;32m"
  4. DEFAULT="\033[0m"
  5.  
  6. cd $1
  7. for i in $( ls ); do
  8. if [[ $i != "node_modules" ]]; then
  9. echo -e "${NEON_GREEN}${i}${DEFAULT}"
  10. cd $i
  11. eval "git $2"
  12. cd ..
  13. echo
  14. fi
  15. done
Add Comment
Please, Sign In to add comment