This commit is contained in:
Guido Cella 2024-06-28 21:51:02 +02:00 committed by GitHub
commit cdfe5f7579
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -105,7 +105,7 @@ function _is_auto_notify_ignored() {
if [[ -n "$AUTO_NOTIFY_WHITELIST" ]]; then
for allowed in $AUTO_NOTIFY_WHITELIST; do
if [[ "$target_command" == "$allowed"* ]]; then
if [[ "$target_command" == "$allowed"(| *) ]]; then
print "no"
return
fi
@ -113,7 +113,7 @@ function _is_auto_notify_ignored() {
print "yes"
else
for ignore in $AUTO_NOTIFY_IGNORE; do
if [[ "$target_command" == "$ignore"* ]]; then
if [[ "$target_command" == "$ignore"*(| *) ]]; then
print "yes"
return
fi