Skip to content

Instantly share code, notes, and snippets.

@alexlopes
Last active September 14, 2020 16:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexlopes/1981509d233b4dbb656d3fd32e4beef3 to your computer and use it in GitHub Desktop.
Save alexlopes/1981509d233b4dbb656d3fd32e4beef3 to your computer and use it in GitHub Desktop.
Autoupdate Firefox -
#!/bin/sh
echo "Downloading latest version for linux 32bits in pt-BR"
wget -v --content-disposition "https://download.mozilla.org/?product=firefox-latest&os=linux&lang=pt-BR" -O - | tar -xvj
echo "Removing"
rm -Rf /usr/lib/firefox
echo "Copying"
cp -r firefox/ /usr/lib
echo "Linking"
sudo ln -sf /usr/lib/firefox/firefox /usr/bin/firefox
echo "Done!"
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment