Unquote $icon in notify-send
command
If `AUTO_NOTIFY_ICON_SUCCESS` or `AUTO_NOTIFY_ICON_FAILURE` is not set, the command fails with `Invalid number of options` since `$icon` is empty.
This commit is contained in:
parent
452eee9454
commit
b1261773fd
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ function _auto_notify_message() {
|
||||||
icon_arg="--icon=$icon"
|
icon_arg="--icon=$icon"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
notify-send "$title" "$body" --app-name=zsh $transient "--urgency=$urgency" "--expire-time=$AUTO_NOTIFY_EXPIRE_TIME" "$icon_arg"
|
notify-send "$title" "$body" --app-name=zsh $transient "--urgency=$urgency" "--expire-time=$AUTO_NOTIFY_EXPIRE_TIME" $icon_arg
|
||||||
elif [[ "$platform" == "Darwin" ]]; then
|
elif [[ "$platform" == "Darwin" ]]; then
|
||||||
osascript \
|
osascript \
|
||||||
-e 'on run argv' \
|
-e 'on run argv' \
|
||||||
|
|
Loading…
Add table
Reference in a new issue