Workspace ONE Support

Revised PR for Workspace ONE support.
This commit is contained in:
Mike Matter
2022-08-16 15:18:04 -05:00
parent 401d5ad138
commit 87cdb11039
3 changed files with 9 additions and 0 deletions

View File

@@ -61,9 +61,12 @@ displaynotification() { # $1: message $2: title
message=${1:-"Message"}
title=${2:-"Notification"}
manageaction="/Library/Application Support/JAMF/bin/Management Action.app/Contents/MacOS/Management Action"
hubcli="/usr/local/bin/hubcli"
if [[ -x "$manageaction" ]]; then
"$manageaction" -message "$message" -title "$title"
elif [[ -x "$hubcli" ]]; then
"$hubcli" notify -t "$title" -i "$message" -c "Dismiss"
else
runAsUser osascript -e "display notification \"$message\" with title \"$title\""
fi