Created
August 6, 2014 06:55
-
-
Save stoeffel/d74f7154d95783fd1ced to your computer and use it in GitHub Desktop.
check if repos are up to date
This file contains 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 | |
find . -type d 2>/dev/null | grep -v node_modules | while read d; do | |
if [ -d "$d/.git" ]; then | |
if [ ! -z "$(git -C $d status --porcelain)" ]; then | |
echo $d; | |
fi | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks to @bylexus