Skip to content

Instantly share code, notes, and snippets.

@patricks
Created November 12, 2018 15:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patricks/a6c3bdf7bd0e9cc64feb8146338032b7 to your computer and use it in GitHub Desktop.
Save patricks/a6c3bdf7bd0e9cc64feb8146338032b7 to your computer and use it in GitHub Desktop.
Pay activation check
#!/bin/sh
# check if Pay is available in a specific country
COUNTRY="DE" # set the country identifier
STATUS=`curl -s "https://smp-device-content.apple.com/static/region/v2/config.json" | grep $COUNTRY | wc -l`
if [ "$STATUS" -eq "1" ]; then
echo "💸"
else
echo "😢"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment