From d212aac2faae7504b9d036900cbe6c4464b74f64 Mon Sep 17 00:00:00 2001 From: Sven Nobis Date: Tue, 9 Apr 2019 10:49:58 +0200 Subject: [PATCH] call nmap executable in run-nmap.sh directory --- packaging/run-nmap.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packaging/run-nmap.sh b/packaging/run-nmap.sh index 2036b18..9d979a1 100755 --- a/packaging/run-nmap.sh +++ b/packaging/run-nmap.sh @@ -1,2 +1,4 @@ #!/bin/bash -NMAPDIR=data ./nmap $@ +SOURCE="${BASH_SOURCE[0]}" +SCRIPT_DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" +NMAPDIR="$SCRIPT_DIR/data" "$SCRIPT_DIR/nmap" $@