#!/bin/bash ########################################################################## # Shellscript : # Author : Andreas Vogel / macenterprise gmbh ########################################################################## jamfHelper="/Library/Application Support/JAMF/bin/jamfHelper.app/Contents/MacOS/jamfHelper" jamf="/usr/local/bin/jamf" FileVaultIcon="/Library/Application Support/JAMF/ING/SmallFileVaultIcon.png" ErrorIcon="/Library/Application Support/JAMF/ING/France_road_sign_A14.svg.png" SuccessfulIcon="/Library/Application Support/JAMF/ING/ok-1976099_640.png" a1=$(find /Library/Java/JavaVirtualMachines -type d -name '*.jdk' -prune -print) title='Auf deinem System befinden sich die folgenden JAVA Versionen:' HELPER=$("$jamfHelper" -windowType utility -icon "$FileVaultIcon" -title "$title" -description "$a1" -button1 "OK" -button2 "Cancel" -cancelButton "2" -defaultButton 2) echo "Jamf Helper Exit Code: $HELPER" if [ "$HELPER" == "0" ] then osascript <