diff options
author | Yaroslav Chvanov <yaroslav.chvanov@gmail.com> | 2024-09-18 22:29:55 +0300 |
---|---|---|
committer | Yaroslav Chvanov <yaroslav.chvanov@gmail.com> | 2024-09-18 22:35:49 +0300 |
commit | 824feedc6889ae9630891c9b75e83b5387896838 (patch) | |
tree | f8115723bac8390c9ad9c809013b3508e7c7354c | |
parent | 7129fa0597f3f365459de51c560c9d5c68bbd707 (diff) |
fix(mailsync): delimit notification text from flags
Fixes text being interpreted as flags when it starts with a dash.
Try sending yourself a letter with subject starting with '-'.
E.g. if subject is '-10%' fixes error:
> Unknown option -10%
-rwxr-xr-x | bin/mailsync | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/mailsync b/bin/mailsync index cbd36ff..866859e 100755 --- a/bin/mailsync +++ b/bin/mailsync @@ -45,7 +45,7 @@ case "$(uname)" in notify() { [ -n "$pgrepoutput" ] && for x in ${displays:-:0}; do export DISPLAY="$x" - notify-send --app-name="mutt-wizard" "$1" "$2" + notify-send --app-name="mutt-wizard" -- "$1" "$2" done ;} ;; esac |