owncast-webhook/bin/watch.sh

16 lines
319 B
Bash
Executable file

#!/bin/sh
export TEMPL_EXPERIMENT=rawgo
sn=owncastwh
st="Owncast Webhook"
while true; do
screen -X -S "$sn" quit
rm -f cmd/server/rice-box.go
./node_modules/.bin/webpack
screen -S "$sn" -d -m go run ./cmd/server/
notify-send "$t" "Build and ready"
inotifywait -r . -e close_write
screen -X -S "$sn" quit
done