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
|
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 " > $@"
|
||||||
|
|
Loading…
Reference in a new issue