]> johannes.truschnigg.info Git - sqm_lagthrottle/commitdiff
Suppress `type` output in wrapper
authorJohannes Truschnigg <johannes@truschnigg.info>
Sat, 12 Mar 2022 14:52:34 +0000 (15:52 +0100)
committerJohannes Truschnigg <johannes@truschnigg.info>
Sat, 12 Mar 2022 14:52:34 +0000 (15:52 +0100)
lagdetect.sh

index e871b5321d378304d2a66e190c89c75ec2c12f80..f37fe731b38b359cad9a051cbc9e236e3fadc201 100755 (executable)
@@ -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 ]