Created
October 31, 2012 15:03
-
-
Save rtrouton/3987535 to your computer and use it in GitHub Desktop.
OS X Java vendor Extension attribute
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 | |
javaVendor=`defaults read /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Info CFBundleIdentifier` | |
if [ "$javaVendor" = "com.oracle.java.JavaAppletPlugin" ]; then | |
result=Oracle | |
elif [ "$javaVendor" = "com.apple.java.JavaAppletPlugin" ]; then | |
result=Apple | |
elif [ "$javaVendor" = "" ]; then | |
result="No Java Plug-In Available" | |
fi | |
echo "<result>$result</result>" | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment