diff --git a/packaging/run-nmap.sh b/packaging/run-nmap.sh old mode 100644 new mode 100755 index 2036b18..9d979a1 --- 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" $@