scripts/update-firefox.sh

This commit is contained in:
q3aql 2025-08-07 09:25:56 +02:00
parent a1a489eab4
commit 09079405ac

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