diff options
author | Jakob Odersky <jakob@odersky.com> | 2018-10-22 04:02:44 -0700 |
---|---|---|
committer | Jakob Odersky <jakob@odersky.com> | 2018-10-22 04:02:44 -0700 |
commit | 4d7a93c535ceeb720dc1873bfa61531099b611cb (patch) | |
tree | 5aa2c02bf756f72fecb5d7bf695a98edfdb417b2 /packages/crashbox-config/git/usr/bin/gh-mirror-all | |
download | infra-4d7a93c535ceeb720dc1873bfa61531099b611cb.tar.gz infra-4d7a93c535ceeb720dc1873bfa61531099b611cb.tar.bz2 infra-4d7a93c535ceeb720dc1873bfa61531099b611cb.zip |
Initial commit
Diffstat (limited to 'packages/crashbox-config/git/usr/bin/gh-mirror-all')
-rwxr-xr-x | packages/crashbox-config/git/usr/bin/gh-mirror-all | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/crashbox-config/git/usr/bin/gh-mirror-all b/packages/crashbox-config/git/usr/bin/gh-mirror-all new file mode 100755 index 0000000..fa9054f --- /dev/null +++ b/packages/crashbox-config/git/usr/bin/gh-mirror-all @@ -0,0 +1,7 @@ +#!/bin/bash +mapfile -t lines < /etc/gh-mirror + +for line in "${lines[@]}"; do + read -r type name dir <<< "$line" + gh-mirror "$type" "$name" "$dir" +done |