update sync.sh

This commit is contained in:
Tobias Powalowski 2024-04-11 20:45:13 +02:00
parent df30f91878
commit a777f52bb5

View file

@ -1,8 +1,8 @@
#!/bin/bash
rsync --delete --delete-before -L -a archboot.com:release ~/public_html/
rsync --delete --delete-before -L -a archboot.com:pkg ~/public_html/
rsync --delete --delete-before -L -a archboot.com:release ~/public_html/
for i in aarch64 riscv64 x86_64; do
cd ~/public_html/release/${i}/
_DIR="$(ls -1rvd */ | head -n1)"
cd ~/public_html/release/${i}/ || exit 1
_DIR="$(echo */ | sed -e 's#.* ##g')"
ln -s "${_DIR}" latest
done