8 lines
195 B
Bash
8 lines
195 B
Bash
|
#!/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"
|