summaryrefslogtreecommitdiff
path: root/git-shell-commands/mirrors
diff options
context:
space:
mode:
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$,,'