
Mac OS X hawkthorne updater
By: a guest on
Jun 26th, 2012 | syntax:
Bash | size: 0.38 KB | hits: 439 | expires: Never
#! /bin/bash
ZIPFILE=hawkthorne-osx.zip
TARG="$HOME/Desktop"
if [ -z $1 ]
then
text=`curl http://www.reddit.com/user/britta-bot`
VER=`echo $text | grep -o "v[0-9]*\.[0-9]*\.[0-9]*" | head -n 1`
else
VER=$1
fi
URL="https://s3.amazonaws.com/hawkthorne.journey.builds/$VER/hawkthorne-osx.zip"
curl -o $ZIPFILE $URL
unzip -o $ZIPFILE -d $TARG
rm $ZIPFILE