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/fetch-mirrors | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'git-shell-commands/fetch-mirrors') diff --git a/git-shell-commands/fetch-mirrors b/git-shell-commands/fetch-mirrors index a9442ba..15bf9c4 100755 --- a/git-shell-commands/fetch-mirrors +++ b/git-shell-commands/fetch-mirrors @@ -6,15 +6,8 @@ set -e # Find all mirrors -~/git-shell-commands/mirrors | \ - while read _mirror; do - - pushd "$_mirror" >/dev/null - +"$(dirname "$0")"/mirrors | while read -r mirror; do + pushd "$mirror" >/dev/null git remote update - popd >/dev/null - done - -exit $? -- cgit v1.2.3