Skip to content
This repository has been archived by the owner on Dec 10, 2018. It is now read-only.

Commit

Permalink
Add Java version check warning to Apple installer
Browse files Browse the repository at this point in the history
  • Loading branch information
tresf committed Aug 30, 2015
1 parent 3b7b8f3 commit c96ef90
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ant/apple/apple-preinstall.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ function check_java() {
fi

if [ $(echo "$curver>=$minver" | bc -l) -eq 0 ]; then
osascript -e "tell app \"Installer\" to display dialog \"Java $minver is required for installation.\nDownload it now?\""
if [ $? -eq 0 ]; then
open "https://java.com/download/"
fi
exit 1
fi
}
Expand All @@ -31,7 +35,7 @@ code=$?
# Fallback on Internet Plug-Ins version if needed
if [ $code -ne 0 ]; then
check_java
code=0
code=$?
fi

# Kill any running versions
Expand Down

0 comments on commit c96ef90

Please sign in to comment.