From 9e50962b17e50d215c746e2414e7b7d96c713826 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Lecour?= Date: Thu, 4 Apr 2019 20:52:13 +0200 Subject: [PATCH] do not print warnings in quiet mode --- evocheck.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/evocheck.sh b/evocheck.sh index 3af1efa..5c694c9 100755 --- a/evocheck.sh +++ b/evocheck.sh @@ -282,7 +282,9 @@ while :; do ;; -?*|[[:alnum:]]*) # ignore unknown options - printf 'WARN: Unknown option (ignored): %s\n' "$1" >&2 + if [ "${QUIET}" != 1 ]; then + printf 'WARN: Unknown option (ignored): %s\n' "$1" >&2 + fi ;; *) # Default case: If no more options then break out of the loop.