#!/usr/bin/env sh

set -e

if [ $(id -u) -eq 0 ]; then
  exec /usr/lib/nmap/nmap "$@"
else
  exec /usr/lib/nmap/nmap --privileged "$@"
fi
