selection=$(/Library/Application Support/JAMF/bin/jamfHelper.app/Contents/MacOS/jamfHelper -windowType utility -description "Please restart now. -button2 "Restart" -showDelayOptions "0, 60, 180, 300" -button1 "Cancel" -cancelButton 1)
I have this simple script above but want to set the the delay options with the -showDelayOptions from jamfhelper. It says XX1 and XX2 for number for seconds for buttons 1 and 2 but I have tried inputting numbers like 002, 602,... and nothing happens. Same goes when selecting cancel button. Would that be 001 or "254 - Cancel button was select with delay option present"? What return value do I need to be looking for?
Delay for 60 seconds?
if [[ "$selection" == 602 ]]; then sudo shutdown -r now fi
