Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Usage: git-bulk.sh <base-dir> "<git-command>"
- NEON_GREEN="\033[0;32m"
- DEFAULT="\033[0m"
- cd $1
- for i in $( ls ); do
- if [[ $i != "node_modules" ]]; then
- echo -e "${NEON_GREEN}${i}${DEFAULT}"
- cd $i
- eval "git $2"
- cd ..
- echo
- fi
- done
Add Comment
Please, Sign In to add comment