Skip to content

run-nmap.sh depends on bash #11

@exploide

Description

@exploide

The statically compiled nmap is especially useful in restricted environments, like containers. However, the run-nmap.sh script only works when bash is available, which isn't always the case. Especially in the mentioned restricted environments, like for example in an Alpine container.

So I think it is useful to have the wrapper script being compatible with /bin/sh like this:

#!/bin/sh
SCRIPT_DIR="$(dirname "$(readlink -f -- "$0")")"
NMAPDIR="$SCRIPT_DIR/data" "$SCRIPT_DIR/nmap" "$@" 

I don't know if this repository is still maintained and welcomes patches? If yes, I would be happy to submit a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions