Add check whether nmap can be found

This commit is contained in:
April 2022-09-06 21:20:31 +02:00
parent 5932ca4399
commit 424097cb93
1 changed files with 5 additions and 0 deletions

View File

@ -47,6 +47,11 @@ if [ -z "$HOST" -a -z "$INPUT" ]; then
exit 3
fi
if ! command -v nmap &> /dev/null; then
echoerr "Missing nmap executable"
exit 3
fi
function log {
if $DEBUG; then
echo " > $@"