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
Showing only changes of commit 424097cb93 - Show all commits

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 " > $@"