Files
tngame/tngame-rs/run_watch.sh
T
2023-03-08 09:46:50 -05:00

17 lines
235 B
Bash
Executable File

#!/usr/bin/env bash
sigint_handler()
{
kill $PID
exit
}
trap sigint_handler SIGINT
while true; do
cargo run &
PID=$!
inotifywait -e modify -e move -e create -e delete -e attrib -r `pwd` --include '.*\.rs'
kill $PID
done