commit: f8703718e7b7c128e6590cca3cc9eb3cd0e8bca5
parent b0f5f087c795c9e35a414698657c01b6372295b7
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Tue, 22 Oct 2024 02:44:28 +0200
nft_*: fix autoconf subcmd logic
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/nft_bps b/nft_bps
@@ -11,7 +11,7 @@ set -e
case $1 in
autoconf)
- if [ $(nft -j list counters | wc -l) != 0 ]; then
+ if [ $(nft -j list counters | wc -l) = 0 ]; then
echo "No named nftable counters"
exit 0
fi
diff --git a/nft_packets b/nft_packets
@@ -11,7 +11,7 @@ set -e
case $1 in
autoconf)
- if [ $(nft -j list counters | wc -l) != 0 ]; then
+ if [ $(nft -j list counters | wc -l) = 0 ]; then
echo "No named nftable counters"
exit 0
fi