scripts/update-firefox.sh

This commit is contained in:
q3aql 2025-08-07 09:25:31 +02:00
parent b5f2555aae
commit e8a85c2f60

View File

@ -43,7 +43,7 @@ install_firefox_desktop() {
echo "Checking firefox version"
touch /etc/firefox_version.conf
url_download=$(curl -I -s "https://download.mozilla.org/?product=firefox-latest-ssl&os=linux64&lang=en-US" | grep Location | cut -d " " -f 2)
url_download=$(curl -I -s "https://download.mozilla.org/?product=firefox-latest-ssl&os=linux64&lang=en-US" | grep -i "location:" | cut -d " " -f 2)
version_firefox=$(basename ${url_download})
version_firefox_current=$(cat /etc/firefox_version.conf)
if [ "${version_firefox}" != "${version_firefox_current}" ] ; then