mirror of
https://github.com/mtan93/Installomator.git
synced 2026-03-31 06:13:12 +01:00
WS1 support (remove sudo)
Removing sudo from notify command.
This commit is contained in:
@@ -374,7 +374,7 @@ displaynotification() { # $1: message $2: title
|
|||||||
if [[ -x "$manageaction" ]]; then
|
if [[ -x "$manageaction" ]]; then
|
||||||
"$manageaction" -message "$message" -title "$title"
|
"$manageaction" -message "$message" -title "$title"
|
||||||
elif [[ -x "$hubcli" ]]; then
|
elif [[ -x "$hubcli" ]]; then
|
||||||
sudo "$hubcli" notify -t "$title" -i "$message" -c "Dismiss"
|
"$hubcli" notify -t "$title" -i "$message" -c "Dismiss"
|
||||||
else
|
else
|
||||||
runAsUser osascript -e "display notification \"$message\" with title \"$title\""
|
runAsUser osascript -e "display notification \"$message\" with title \"$title\""
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user