From 9a929d440ca7214aca40c81faf4f70462f67cb08 Mon Sep 17 00:00:00 2001 From: Manuel Friedli Date: Thu, 23 Jul 2020 20:53:18 +0200 Subject: [PATCH] Suppress output of `dirs` when calling `pushd`. --- ddos-mitigator/superscript.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ddos-mitigator/superscript.sh b/ddos-mitigator/superscript.sh index a11a12d..5b3fac3 100755 --- a/ddos-mitigator/superscript.sh +++ b/ddos-mitigator/superscript.sh @@ -123,7 +123,8 @@ trap 'sudo -k; popd; rm -r ${tmpdir}' EXIT # Create a temp directory, chdir into it and create the (initially empty) # banlist file. tmpdir=$(mktemp -d) -pushd "${tmpdir}" +# Suppress output of dir stack. +pushd "${tmpdir}" > /dev/null touch "${banlist}" # Parse the command line options