aboutsummaryrefslogblamecommitdiff
path: root/bin/fgscr
blob: 7d5ff4c5567e2ab8b4075d018d773d438b9e66f4 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                                 
 
                               
                                       

                                                                        
                 
                                                     
#!/bin/sh
# Find all the Git repositories in a directory and scrub them all

# Check we have gscr(1df) first
command -v gscr >/dev/null 2>&1 || exit

# Look for any dir named .git in the given (default current) dir and run
# gscr(1df) on it
find "${@:-.}" -name '*.git' -type d -exec gscr {} \;