diff options
author | Erich Eckner <git@eckner.net> | 2022-11-07 17:40:29 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2022-11-07 17:40:29 +0100 |
commit | f73f6cd11b8e49bf8d37ed603dc98269bfd11cff (patch) | |
tree | dfacac610b5614d12b27c51c55d7f10d9850b6d5 /bin/clone-mirror | |
parent | 8db8728574483a52cddb8f53a52eac78be54ddd7 (diff) | |
download | airgapd-master.tar.xz |
Diffstat (limited to 'bin/clone-mirror')
-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 |