looper/test.sh
2024-11-20 13:39:34 -08:00

17 lines
No EOL
272 B
Bash
Executable file

#!/bin/bash
source venv/bin/activate
PIDFILE="$(mktemp)"
looper() {
echo $$ > "$PIDFILE"
./build/default/looper -m
rm "$PIDFILE" -f
}
./build.sh || exit $?
looper &
tl &
while [ -f "$PIDFILE" ]; do
sleep 1
done
for i in $(jobs -p); do
kill -HUP $i
done