From 990cbbf75c40b92e6d6dc66721dfbedf33cacf8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20N=C4=9Bmec?= Date: Wed, 27 Jan 2021 15:02:03 +0100 Subject: tests: monitor: use correct $nft value in EXIT trap MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With double quotes, $nft was being expanded to the default value even in presence of the -H option. Signed-off-by: Štěpán Němec Helped-by: Tomáš Doležal Acked-by: Phil Sutter Signed-off-by: Phil Sutter --- tests/monitor/run-tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/monitor/run-tests.sh') diff --git a/tests/monitor/run-tests.sh b/tests/monitor/run-tests.sh index 5a736fc6..1fe613c7 100755 --- a/tests/monitor/run-tests.sh +++ b/tests/monitor/run-tests.sh @@ -19,7 +19,7 @@ if [ ! -d $testdir ]; then echo "Failed to create test directory" >&2 exit 1 fi -trap "rm -rf $testdir; $nft flush ruleset" EXIT +trap 'rm -rf $testdir; $nft flush ruleset' EXIT command_file=$(mktemp -p $testdir) output_file=$(mktemp -p $testdir) -- cgit v1.2.3