Browse Source

java: fix false positives for check on mac os x

Kyle P Davis 9 years ago
parent
commit
656a1383e9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      gimmes/java

+ 1 - 1
gimmes/java

@@ -2,7 +2,7 @@
 set -o errexit -o pipefail
 
 if [[ "$OS" = "Darwin" ]]; then
-	has java  ||  brew cask install java
+	[ -d "/Library/PreferencePanes/JavaControlPanel.prefPane" ]  ||  brew cask install java
 else
 	has java  ||  gimme_pkg openjdk-8-jdk
 fi