sang/run.sh

8 lines
195 B
Bash
Raw Permalink Normal View History

#!/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"