From: Johannes Truschnigg Date: Sat, 12 Mar 2022 14:52:34 +0000 (+0100) Subject: Suppress `type` output in wrapper X-Git-Url: https://johannes.truschnigg.info/gitweb/?a=commitdiff_plain;h=1d2c3bf873664b519e551fae16bbf9823899aa18;p=sqm_lagthrottle Suppress `type` output in wrapper --- diff --git a/lagdetect.sh b/lagdetect.sh index e871b53..f37fe73 100755 --- a/lagdetect.sh +++ b/lagdetect.sh @@ -16,7 +16,7 @@ PING_INTERVAL=500 for p in traceroute fping awk do - type "${p}" || { printf 'FATAL: Required program "%s" not installed.\n' "${p}" >&2; exit 1; } + type "${p}" >/dev/null || { printf 'FATAL: Required program "%s" not installed.\n' "${p}" >&2; exit 1; } done if [ x"${PING_GW_IPV6}" = xyes ]