mirror of
https://github.com/mtan93/Installomator.git
synced 2026-04-05 14:23:07 +01:00
Workspace ONE Support
Revised PR for Workspace ONE support.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user