Add check whether nmap can be found #1
1 changed files with 5 additions and 0 deletions
|
@ -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 " > $@"
|
||||
|
|
Loading…
Reference in a new issue