diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2020-08-26 13:15:34 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2020-08-26 13:15:34 +0200 |
commit | 04e294422ffd025614c8c3730873463300bbd378 (patch) | |
tree | b8b5a5d59cb4866bcd3229ad6eedb2b92b4a25f2 /mirror_update.sh | |
parent | c5d6400a1647fd1f4adb12a2655fb3ef44a91668 (diff) | |
download | reposync-04e294422ffd025614c8c3730873463300bbd378.tar.gz |
+ mirror_udpate.sh
Diffstat (limited to 'mirror_update.sh')
-rwxr-xr-x | mirror_update.sh | 12 |
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 |