summaryrefslogtreecommitdiff
path: root/git-shell-commands/fetch-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/fetch-mirrors
parent296184cb6a3f34b2e1f0ced37e862f1fcae7cc0c (diff)
lukeshu-ify the git-shell-commands
mostly, handle escaping repo names consistently-ish
Diffstat (limited to 'git-shell-commands/fetch-mirrors')
-rwxr-xr-xgit-shell-commands/fetch-mirrors11
1 files changed, 2 insertions, 9 deletions
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 $?