Add check whether nmap can be found #1

Merged
Jonny007-MKD merged 1 commit from feature/check-nmap-exists-first into main 2022-09-06 21:25:10 +02:00

View file

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