Created
November 12, 2018 15:04
-
-
Save patricks/a6c3bdf7bd0e9cc64feb8146338032b7 to your computer and use it in GitHub Desktop.
Pay activation check
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
#!/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