check for "nft" command availability
This commit is contained in:
parent
35ca6e5142
commit
9f05043a32
1 changed files with 7 additions and 0 deletions
|
@ -15,6 +15,13 @@ else
|
||||||
default_config_file=""
|
default_config_file=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
nft=$(command -v nft)
|
||||||
|
|
||||||
|
if test -z "$nft" ; then
|
||||||
|
echo "ERROR: Command \"nft\" not found; aborted." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
##
|
##
|
||||||
# Functions
|
# Functions
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue