f-78: e2e: watchdog_quiet réussit sans alerte quand aucune exclusion n'est donnée #78

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2026-10-19 23:46:13 +02:00
commit a47af03eef
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632
2 changed files with 12 additions and 1 deletions

View file

@ -81,7 +81,8 @@ watchdog_alerts () {
watchdog_quiet () {
local out
out=$(watchdog_alerts "${1:-300}" | { if [ -n "${2:-}" ]; then grep -vF -- "${2}"; else cat; fi; }) || return 0
out=$(watchdog_alerts "${1:-300}" | { if [ -n "${2:-}" ]; then grep -vF -- "${2}"; else cat; fi; })
[ -z "${out}" ] && return 0
printf '%s\n' "${out}"
return 1
}