Skip to content

Instantly share code, notes, and snippets.

@arubdesu
Created February 18, 2013 23:24
Show Gist options
  • Save arubdesu/4981686 to your computer and use it in GitHub Desktop.
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
${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