1 2 3 4 5 6 7 8 9
#!/bin/sh # * mirrors # Muestra todos los repositorios espejos (mirror) # ssh git@host mirrors set -e # Find all mirrors find $(find * -name '*.git' -type d) -maxdepth 1 -name config -exec grep -l 'mirror\s*=\s*true' {} + | sed 's,/config$,,'