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