From: Štěpán Němec Date: Wed, 27 Jan 2021 14:02:03 +0000 (+0100) Subject: tests: monitor: use correct $nft value in EXIT trap X-Git-Tag: v0.9.9~140 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=990cbbf75c40b92e6d6dc66721dfbedf33cacf8f;p=thirdparty%2Fnftables.git tests: monitor: use correct $nft value in EXIT trap 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 --- 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)