Skip to content

Commit

Permalink
Merge pull request #31 from BonnierNews/change_swiftdialog_to_notific…
Browse files Browse the repository at this point in the history
…ations

Change swiftdialog to notification (from dialog)
  • Loading branch information
macbofh authored Nov 3, 2024
2 parents bd2a087 + e60cc17 commit 2ef7894
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion fragments/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,10 @@ displayNotification() { # $1: message $2: title
;;
swiftdialog)
if [ -x "$swiftDialog" ]; then
"$swiftDialog" --message "$message" --title "$title" --mini
"$swiftDialog" --message "$message" --title "$title" --$swiftDialogNotification
else
printlog "ERROR: $swiftDialog not installed for showing notifications. Falling back to AppleScript"
FallBacktoAS=true
fi
;;
applescript)
Expand Down
2 changes: 1 addition & 1 deletion fragments/header.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ NOTIFICATIONTYPE=jamf
# Notification Sources
jamfManagementAction="/Library/Application Support/JAMF/bin/Management Action.app/Contents/MacOS/Management Action"
swiftDialog="/usr/local/bin/dialog"

swiftDialogNotification=mini

# - appVersionKey: (optional)
# How we get version number from app. Default value
Expand Down

0 comments on commit 2ef7894

Please sign in to comment.