summaryrefslogtreecommitdiff
path: root/bin/clone-mirror
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2022-11-07 17:40:29 +0100
committerErich Eckner <git@eckner.net>2022-11-07 17:40:29 +0100
commitf73f6cd11b8e49bf8d37ed603dc98269bfd11cff (patch)
treedfacac610b5614d12b27c51c55d7f10d9850b6d5 /bin/clone-mirror
parent8db8728574483a52cddb8f53a52eac78be54ddd7 (diff)
downloadairgapd-f73f6cd11b8e49bf8d37ed603dc98269bfd11cff.tar.xz
bin/clone-mirror: fix wrong globbingHEADmaster
Diffstat (limited to 'bin/clone-mirror')
-rwxr-xr-xbin/clone-mirror6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/clone-mirror b/bin/clone-mirror
index cffdc15..78c98d9 100755
--- a/bin/clone-mirror
+++ b/bin/clone-mirror
@@ -10,7 +10,11 @@ for stick_dir in "${work_dir}/sticks/"*; do
mountpoint -q "${stick_dir}" || continue
mkdir "${stick_dir}/archlinuxarm"
rsync -rlptH --safe-links --delete-delay --delay-updates \
- --copy-dest="${work_dir}/sticks/"*"/archlinuxarm" \
+ $(
+ for s in "${work_dir}/sticks/"*"/archlinuxarm"; do
+ [ "${s}" = "${stick_dir}/archlinuxarm" ] || echo --copy-dest="${s}"
+ done
+ ) \
'rsync://de3.mirror.archlinuxarm.org/archlinux-arm/' \
"${stick_dir}/archlinuxarm"
done