fix symlink for real this time, and fix removal of old versions
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
askiiart 2024-10-07 19:02:14 -05:00
parent 9ae00b7813
commit 9a6d1ebff3
Signed by untrusted user who does not match committer: askiiart
GPG key ID: EA85979611654C30

View file

@ -26,7 +26,7 @@ cd /iso/
num=$(find . -mindepth 1 -maxdepth 1 -name 'blendOS-*' -type d | wc -l)
echo $num
if [ $(($num - 3)) -ge 1 ]; then
rm -rf $(find . -mindepth 1 -maxdepth 1 -name 'blendOS-*' -type d | tail -n $(($num - 3)))
rm -rf $(find . -mindepth 1 -maxdepth 1 -type d | sort | tail -n $(($num - 3)))
fi
ln -sf $(find . -mindepth 1 -maxdepth 1 -type d | head -n 1) ./latest
ln -sf $date /iso/latest