sang/run.sh

7 lines
195 B
Bash
Executable file

#!/bin/bash
set -e
ROOT="$(git rev-parse --show-toplevel)"
ROOT="${ROOT:-.}"
cargo build --release --bin sang
sudo setcap CAP_NET_ADMIN+ep "$ROOT/target/release/sang"
"$ROOT/target/release/sang"