Files
brk/server/run.sh
2024-09-18 18:43:36 +02:00

15 lines
284 B
Bash
Executable File

#!/usr/bin/env bash
if cargo watch --help &> /dev/null; then
TRIGGER="./in/datasets_len.txt"
if [ ! -f "$TRIGGER" ]; then
mkdir "./in"
echo "0" > $TRIGGER
fi
cargo watch --no-vcs-ignores -w "./src" -w "$TRIGGER" -x "run -r"
else
cargo run -r
fi