not quite yet working live reload
This commit is contained in:
10
live-reloader.sh
Executable file
10
live-reloader.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
echo "Watching changes in hiisi..."
|
||||
while true; do
|
||||
inotifywait -e modify build/hiisi/libhiisi-engine.so
|
||||
echo "$(date \"%H:%M:%S\") - Hiisi changed!"
|
||||
|
||||
HIISI_PID=$(pgrep -x hiisi-run)
|
||||
kill -USR1 "${HIISI_PID}" && echo "Signal sent!" || echo "Signal send failed!"
|
||||
done
|
||||
Reference in New Issue
Block a user