#!/bin/sh # netsec-scan entrypoint. Runs from the repo root so `python3 -m netsec_scan` # resolves the package; stdout is the alert, stderr is diagnostics. # `dirname "$0"`, not a hard-coded path: a git worktree (or a moved checkout) # must run its own code, not whatever lives in ~/Projects/netsec-agent. set -u cd "$(dirname "$0")" || exit 1 exec python3 -m netsec_scan "$@"