diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-06-02 13:48:51 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-06-02 13:48:51 -0400 |
commit | e3f6b8e3246f89c6df4052006d18df542721c16e (patch) | |
tree | 481143d61ead547b2e76ac66bc07cc533f2f7f6e /git-shell-commands/mirrors | |
parent | 296184cb6a3f34b2e1f0ced37e862f1fcae7cc0c (diff) |
lukeshu-ify the git-shell-commands
mostly, handle escaping repo names consistently-ish
Diffstat (limited to 'git-shell-commands/mirrors')
-rwxr-xr-x | git-shell-commands/mirrors | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/git-shell-commands/mirrors b/git-shell-commands/mirrors index d1301a8..436564f 100755 --- a/git-shell-commands/mirrors +++ b/git-shell-commands/mirrors @@ -6,6 +6,4 @@ set -e # Find all mirrors -find *.git -maxdepth 1 -iname config -print0 | \ - xargs -0 grep -l 'mirror = true' | \ - sed 's,/config$,,' +find $(find * -name '*.git' -type d) -maxdepth 1 -name config -exec grep -l 'mirror\s*=\s*true' {} + | sed 's,/config$,,' |