Skip to content

Instantly share code, notes, and snippets.

View InfernoDigital's full-sized avatar
💭
Learning Github so I can post Unity packages here! Woot!

StormyDoesVR InfernoDigital

💭
Learning Github so I can post Unity packages here! Woot!
View GitHub Profile
@hazcod
hazcod / updateMoonlight.sh
Created May 19, 2015 08:56
Update Moonlight
function version { echo "$@" | gawk -F. '{ printf("%03d%03d%03d\n", $1,$2,$3); }'; }
function downloadFile {
echo "$1" | egrep -o "/irtimmer/moonlight-embedded/releases/download/v([0-9]\.*)+/$2" | wget -q --base=http://github.com/ -i - -O "$2"
}
function updateMoonlight {
FILE=version
releases=`curl -s -L https://github.com/irtimmer/moonlight-embedded/releases/latest`
current_version=`cat $FILE`