Skip to content

Instantly share code, notes, and snippets.

@them
them / update_chromium.command
Created June 9, 2011 21:16
Quick and dirty Chromium downloader for OSX till Chromatic is updated
#!/bin/bash
# Quick and dirty Chromium updater till Chromatic is updated.
# Beware there is no safety net, use at your own risk!
# Where is Chromium installed?
INSTALLFOLDER='/Applications/Internet';
RELEASE_TYPE="snapshots"
# Get current installed version
CURRENT=$(xpath $INSTALLFOLDER/Chromium.app/Contents/Info.plist '/plist/dict/key[. = "SCMRevision"]/following-sibling::string[1]/text()' 2> /dev/null);