Created
February 21, 2012 21:17
-
-
Save benvanik/1879006 to your computer and use it in GitHub Desktop.
Update Chromium on Linux to the latest version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd ~/Downloads/ | |
if [ ! -x /usr/bin/curl ]; then | |
echo "Didn't find curl at /usr/bin/curl. Install with 'sudo apt-get install curl'." | |
exit 1 | |
fi | |
echo -n "Determining latest build... " | |
LATEST=`curl -s http://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64/LAST_CHANGE` | |
echo "done!" | |
echo "http://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64/$LATEST/chrome-linux.zip" | |
echo -n "Downloading build for $LATEST... " | |
wget http://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64/$LATEST/chrome-linux.zip | |
echo "done!" | |
echo -n "Deleting old install... " | |
rm -rf chrome-linux | |
echo "done!" | |
echo -n "Unpacking new install... " | |
unzip -q chrome-linux.zip | |
echo "done!" | |
echo -n "Cleaning up... " | |
rm -f chrome-linux.zip | |
echo "done!" | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment