looper/test.sh

17 lines
272 B
Bash
Raw Normal View History

2024-11-20 08:15:45 -08:00
#!/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