mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-27 04:54:41 +08:00
selftests: netfilter: nft_meta.sh: small shellcheck cleanup
shellcheck complains about missing "", so add those. Signed-off-by: Florian Westphal <fw@strlen.de> Link: https://lore.kernel.org/r/20240418152744.15105-11-fw@strlen.de Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
9b443c769b
commit
4d7730154e
@ -91,10 +91,10 @@ check_one_counter()
|
|||||||
local want="packets $2"
|
local want="packets $2"
|
||||||
local verbose="$3"
|
local verbose="$3"
|
||||||
|
|
||||||
if ! ip netns exec "$ns0" nft list counter inet filter $cname | grep -q "$want"; then
|
if ! ip netns exec "$ns0" nft list counter inet filter "$cname" | grep -q "$want"; then
|
||||||
echo "FAIL: $cname, want \"$want\", got"
|
echo "FAIL: $cname, want \"$want\", got"
|
||||||
ret=1
|
ret=1
|
||||||
ip netns exec "$ns0" nft list counter inet filter $cname
|
ip netns exec "$ns0" nft list counter inet filter "$cname"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user