Skip to content

Instantly share code, notes, and snippets.

@joefiorini
Created May 18, 2009 00:53
Show Gist options
  • Save joefiorini/113247 to your computer and use it in GitHub Desktop.
Save joefiorini/113247 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
update_google_chrome() {
get_latest_revision_number
download_latest_revision
extract_code
install_chrome
}
get_latest_revision_number() {
LATEST=`curl http://build.chromium.org/buildbot/snapshots/sub-rel-mac/LATEST`
}
download_latest_revision() {
(cd ~/src &&
curl -O http://build.chromium.org/buildbot/snapshots/sub-rel-mac/$LATEST/chrome-mac.zip)
}
extract_code() {
(cd ~/src &&
unzip chrome-mac.zip)
}
install_chrome() {
(cd ~/src/chrome-mac &&
cp -fr Chromium.app /Applications &&
cd .. &&
rm -rf chrome-mac)
}
update_google_chrome
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment