Fix minor bug in _is_auto_notify_ignored

This commit is contained in:
Michael Aquilina 2019-07-31 15:52:59 +01:00
parent bad7321d4a
commit 2292476f93
No known key found for this signature in database
GPG key ID: 636066730B056BD1

View file

@ -58,7 +58,7 @@ function _is_auto_notify_ignored() {
local command_list=("${(@s/|/)command}") local command_list=("${(@s/|/)command}")
local target_command="${command_list[-1]}" local target_command="${command_list[-1]}"
# Remove leading whitespace # Remove leading whitespace
target_command="$(echo "$target_command" | sed -e 's/^ *//')}" target_command="$(echo "$target_command" | sed -e 's/^ *//')"
for ignore in $AUTO_NOTIFY_IGNORE; do for ignore in $AUTO_NOTIFY_IGNORE; do
if [[ "$target_command" == "$ignore"* ]]; then if [[ "$target_command" == "$ignore"* ]]; then