Created
August 5, 2014 18:41
-
-
Save chockenberry/27d77be84d7df9b9ed14 to your computer and use it in GitHub Desktop.
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 | |
find=`find /Applications /Applications/Utilities -maxdepth 2 -name '*.app' -exec echo \{\} \;` | |
#echo $find | |
IFS=$'\n' | |
apps=($find) | |
total=${#apps[*]} | |
echo "Checking $total applications..." | |
echo "The following applications will break in Gatekeeper on 10.9.5 and Yosemite:" | |
count=0 | |
for ((i = 0; i < $total; i++)); do | |
app=${apps[${i}]} | |
codesign -dv $app 2>&1 | grep "Sealed Resources version=1" > /dev/null | |
if [ $? -eq 0 ]; then | |
echo "$app" | |
count=$((count+1)) | |
fi | |
done | |
echo "$count applications affected" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This can't be real. :-( As a shortcut for anyone, here's my list of apps I had, as reference.