Created
March 22, 2017 04:32
-
-
Save willyliu/6fe9da5579f60a7babec472b57de411a to your computer and use it in GitHub Desktop.
Lists provision profiles' names
This file contains hidden or 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/bash | |
SAVEIFS=$IFS | |
IFS=$'\n' | |
path="$HOME/Library/MobileDevice/Provisioning Profiles/*.provisionprofile" | |
for filename in $path; do | |
profileName=`/usr/libexec/plistbuddy -c Print:Name /dev/stdin <<< \ | |
\`security cms -D -i $filename\`` | |
echo $profileName | |
done | |
IFS=$SAVEIFS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment