check for "nft" command availability
This commit is contained in:
parent
35ca6e5142
commit
9f05043a32
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user