fetch-mirrors 276 B

1234567891011121314
  1. #!/bin/sh
  2. # * fetch-mirrors
  3. # Actualiza el `mirrors` (espejos) creados con `mirror`
  4. # ssh git@host fetch-mirrors
  5. set -e
  6. # Find all mirrors
  7. "$(dirname "$0")"/mirrors | while read -r mirror; do
  8. pushd "$mirror" >/dev/null
  9. git remote update
  10. popd >/dev/null
  11. done