Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save apizz/929800c6d7eb8f008332d5bf3c42686f to your computer and use it in GitHub Desktop.
Save apizz/929800c6d7eb8f008332d5bf3c42686f to your computer and use it in GitHub Desktop.
installcheck_script for appleloops GarageBand nopkg item for all loops
#!/bin/bash
RECEIPT_ONE="/Library/Receipts/.appleLoopsGBMandatoryDone"
RECEIPT_TWO="/Library/Receipts/.appleLoopsGBOptionalDone"
# If either RECEIPT not present, run nopkg postinstall script
if [ ! -f "$RECEIPT_ONE" ] || [ ! -f "$RECEIPT_TWO" ]; then
exitcode=0
else
exitcode=1
fi
exit $exitcode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment