Created
February 18, 2013 23:24
-
-
Save arubdesu/4981686 to your computer and use it in GitHub Desktop.
Temp hack to workaround munkibuilds.org clearing off of more-than 20 front-page downloads
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
${MUNKIFILE}: | |
curl -o $@ http://munkibuilds.org/${MUNKI_VERSION}/$@ | |
curldsize=`du $@ | cut -f 1` ; minsize=10 | |
@if [ ${curldsize} -lt ${minsize} ]; then rm -f $@ && curl -o $@ http://munkibuilds.org/%20older/${MUNKI_VERSION}/$@; fi | |
hdiutil verify "$@" || (rm -f "$@" ; exit 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment