2
0

check for "nft" command availability

This commit is contained in:
Tilman Kranz 2021-11-24 02:45:24 +01:00
parent 35ca6e5142
commit 9f05043a32

View File

@ -15,6 +15,13 @@ else
default_config_file=""
fi
nft=$(command -v nft)
if test -z "$nft" ; then
echo "ERROR: Command \"nft\" not found; aborted." >&2
exit 1
fi
##
# Functions