summaryrefslogtreecommitdiff
path: root/git-shell-commands/mirrors
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-06-02 13:48:51 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-06-02 13:48:51 -0400
commite3f6b8e3246f89c6df4052006d18df542721c16e (patch)
tree481143d61ead547b2e76ac66bc07cc533f2f7f6e /git-shell-commands/mirrors
parent296184cb6a3f34b2e1f0ced37e862f1fcae7cc0c (diff)
lukeshu-ify the git-shell-commands
mostly, handle escaping repo names consistently-ish
Diffstat (limited to 'git-shell-commands/mirrors')
-rwxr-xr-xgit-shell-commands/mirrors4
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$,,'