Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- find . -name '.git' -type d -prune \
- | rev | cut -d '/' -f2- | rev | tr '\n' '\0' \
- | xargs -0 -n1 -I% bash -c 'echo -n "%..."; cd "%"; git fsck 2>/dev/null 1>&2; if [ $? -eq "0" ]; then printf "\e[32mPASS\e[39m\n"; else printf "\e[31mFAIL\e[39m\n"; fi'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement