#!/bin/sh # * fetch-mirrors # Update the created `mirrors` with `mirror` # ssh git@host fetch-mirrors set -e # Find all mirrors "$(dirname "$0")"/mirrors | while read -r mirror; do pushd "$mirror" >/dev/null git remote update popd >/dev/null done