call nmap executable in run-nmap.sh directory

This commit is contained in:
Sven Nobis 2019-04-09 10:49:58 +02:00
parent 1d2bbea346
commit d212aac2fa
No known key found for this signature in database
GPG key ID: 586C23E171B79DF1

View file

@ -1,2 +1,4 @@
#!/bin/bash #!/bin/bash
NMAPDIR=data ./nmap $@ SOURCE="${BASH_SOURCE[0]}"
SCRIPT_DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
NMAPDIR="$SCRIPT_DIR/data" "$SCRIPT_DIR/nmap" $@