Files
krata/scripts/kratanet-debug.sh

13 lines
286 B
Bash
Raw Normal View History

2024-02-21 20:57:46 +00:00
#!/bin/sh
set -e
if [ -z "${RUST_LOG}" ]
then
RUST_LOG="INFO"
fi
REAL_SCRIPT="$(realpath "${0}")"
cd "$(dirname "${REAL_SCRIPT}")/.."
cargo build --target x86_64-unknown-linux-gnu --bin kratanet
2024-02-21 20:57:46 +00:00
exec sudo RUST_LOG="${RUST_LOG}" target/x86_64-unknown-linux-gnu/debug/kratanet "${@}"