From 1d2bbea346539e0a69d2d958d6d52bc5332ab338 Mon Sep 17 00:00:00 2001 From: Sven Nobis Date: Tue, 9 Apr 2019 10:39:14 +0200 Subject: [PATCH 1/2] made run-nmap.sh executable --- packaging/run-nmap.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 packaging/run-nmap.sh diff --git a/packaging/run-nmap.sh b/packaging/run-nmap.sh old mode 100644 new mode 100755 From d212aac2faae7504b9d036900cbe6c4464b74f64 Mon Sep 17 00:00:00 2001 From: Sven Nobis Date: Tue, 9 Apr 2019 10:49:58 +0200 Subject: [PATCH 2/2] 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" $@