aboutsummaryrefslogtreecommitdiff
path: root/mirror_update.sh
diff options
context:
space:
mode:
Diffstat (limited to 'mirror_update.sh')
-rwxr-xr-xmirror_update.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/mirror_update.sh b/mirror_update.sh
new file mode 100755
index 0000000..d48125a
--- /dev/null
+++ b/mirror_update.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+# fetch mirrors
+
+[ ! -d "$1" ] && exit 1
+
+ROOTDIR=$(realpath "$1")
+
+for dir in $(ls -d "$ROOTDIR/*.git/"); do
+ echo $dir
+ git -C "$dir" fetch --mirror
+done