diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/clone-mirror | 6 |
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 |