From 5a50536e59babfe62a01480070e7b3481707f9b0 Mon Sep 17 00:00:00 2001 From: Grafcube Date: Thu, 11 May 2023 17:02:14 +0530 Subject: [PATCH] Fix transient argument The transient variable must not be quoted. Otherwise the command fails with `Invalid number of options.` for unsuccessful error codes. --- auto-notify.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto-notify.plugin.zsh b/auto-notify.plugin.zsh index 118af69..180a589 100644 --- a/auto-notify.plugin.zsh +++ b/auto-notify.plugin.zsh @@ -56,7 +56,7 @@ function _auto_notify_message() { urgency="critical" transient="" fi - notify-send "$title" "$body" --app-name=zsh "$transient" "--urgency=$urgency" "--expire-time=$AUTO_NOTIFY_EXPIRE_TIME" + notify-send "$title" "$body" --app-name=zsh $transient "--urgency=$urgency" "--expire-time=$AUTO_NOTIFY_EXPIRE_TIME" elif [[ "$platform" == "Darwin" ]]; then osascript \ -e 'on run argv' \