From f73f6cd11b8e49bf8d37ed603dc98269bfd11cff Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 7 Nov 2022 17:40:29 +0100 Subject: bin/clone-mirror: fix wrong globbing --- bin/clone-mirror | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bin/clone-mirror') 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 -- cgit v1.2.3-70-g09d2