From 04e294422ffd025614c8c3730873463300bbd378 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Wed, 26 Aug 2020 13:15:34 +0200 Subject: + mirror_udpate.sh --- mirror_update.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 mirror_update.sh (limited to 'mirror_update.sh') 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 -- cgit v1.2.3