Skip to content

Instantly share code, notes, and snippets.

@reinaris
Created July 12, 2016 11:33
Show Gist options
  • Save reinaris/40c1fe2d3356c6dc3ec3d129a5916a59 to your computer and use it in GitHub Desktop.
Save reinaris/40c1fe2d3356c6dc3ec3d129a5916a59 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Add the following commands to your setup commands to update firefox
# git clone https://gist.github.com/9525133.git update_firefox
# bash ./update_firefox/update_firefox 28
# firefox --version
set -e
pushd ~/ > /dev/null
rm -fr firefox
firefox_file=firefox-46.0.1.tar.bz2
cache_path=~/cache/$firefox_file
download_url=http://ftp.mozilla.org/pub/firefox/releases/46.0.1/linux-x86_64/en-US/firefox-46.0.1.tar.bz2
curl -I -f $download_url
if [ ! -f $cache_path ]; then
wget $download_url -O $cache_path
fi
tar -jxf $cache_path
firefox --version
popd > /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment