From e3f6b8e3246f89c6df4052006d18df542721c16e Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 2 Jun 2014 13:48:51 -0400 Subject: lukeshu-ify the git-shell-commands mostly, handle escaping repo names consistently-ish --- git-shell-commands/mirrors | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'git-shell-commands/mirrors') 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$,,' -- cgit v1.2.3