tests: monitor: use correct $nft value in EXIT trap
PATCH 1/1 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 <[email protected]>
Helped-by Tomáš Doležal <[email protected]>
Acked-by Phil Sutter <[email protected]>
--- tests/monitor/run-tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tests/monitor/run-tests.sh +1 -1
@@ -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)
Signature · 1 line
2.29.2
Quoted 6 lines · Štěpán Němec
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 <[email protected]>Helped-by Tomáš Doležal <[email protected]>Acked-by Phil Sutter <[email protected]>
Applied, thanks!
Quoted 1 line · On Wed, 27 Jan 2021 23:51:34 +0100 Phil Sutter wrote:
Applied, thanks!
Thank you, and I apologize to everyone involved for the lack of proper tag prefix in the Subject; I only realized too late I should have added the "nft".
Signature · 1 line
Štěpán