done: fix ignored command

We want to see if `$DONE_EXCLUDE` *matches* the command...
This commit is contained in:
Bruno BELANYI 2024-02-15 16:29:11 +00:00
parent f63a0bb425
commit c9c00b491a

View file

@ -120,7 +120,7 @@ __done_is_ignored_command() {
return 1
fi
# shellcheck disable=2154
printf '%s' "$__done_last_command" | grep -q -v -P "$DONE_EXCLUDE"
printf '%s' "$__done_last_command" | grep -q -P "$DONE_EXCLUDE"
}
__done_notify() {