Created
June 17, 2015 11:09
-
-
Save rodesousa/561df35bf65922b99910 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #/bin/bash | |
| exclude="log\|other" | |
| for directory in `find * -maxdepth 0 -type d` | |
| do | |
| if [[ "`echo $directory | grep \"$exclude\"`" == "" ]] | |
| then | |
| echo "### repo $directory =>" | |
| cd $directory | |
| git "$@" | |
| echo "" | |
| cd .. | |
| fi | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment