fix symlink for real this time, and fix removal of old versions
All checks were successful
continuous-integration/drone Build is passing
All checks were successful
continuous-integration/drone Build is passing
This commit is contained in:
parent
9ae00b7813
commit
9a6d1ebff3
1 changed files with 2 additions and 2 deletions
4
build.sh
4
build.sh
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue