fix: new download page

This commit is contained in:
Ming Di Leom 2022-08-26 01:49:24 +00:00
parent 5eff6d5e5b
commit 7dd600d29a
No known key found for this signature in database
GPG key ID: 06C236E63CBC68AA

View file

@ -360,11 +360,11 @@ esac
set +e
if [[ $pathVersion == *"fresh"* ]] ; then
nrVersion=$(curl "https://www.libreoffice.org/download/download" | grep -o -e "/stable/.*/" | cut -d "/" -f 3 | head -n 1)
nrVersion=$(curl "https://www.libreoffice.org/download/download-libreoffice/" | grep -o -e "/stable/.*/" | cut -d "/" -f 3 | head -n 1)
path="https://download.documentfoundation.org/libreoffice/stable/${nrVersion}/deb/${pathArch}/"
package="LibreOffice_${nrVersion}_Linux_${arch}_deb.tar.gz"
elif [[ $pathVersion == *"still"* ]] ; then
nrVersion=$(curl "https://www.libreoffice.org/download/download" | grep -o -e "/stable/.*/" | cut -d "/" -f 3 | head -n 3 | tail -n 1)
nrVersion=$(curl "https://www.libreoffice.org/download/download-libreoffice/" | grep -o -e "/stable/.*/" | cut -d "/" -f 3 | head -n 3 | tail -n 1)
path="https://download.documentfoundation.org/libreoffice/stable/${nrVersion}/deb/${pathArch}/"
package="LibreOffice_${nrVersion}_Linux_${arch}_deb.tar.gz"
elif [[ $pathVersion == *"daily"* ]] ; then