summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-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