scripts/update-firefox.sh
This commit is contained in:
parent
a1a489eab4
commit
09079405ac
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user