Add script to restart executable on change

This commit is contained in:
lhark 2018-07-08 23:26:27 -04:00
parent 2e77655cfa
commit 83bc804ee0

7
restart-on-change Executable file
View file

@ -0,0 +1,7 @@
#!/bin/sh
while true; do
$@ &
PID=$!
inotifywait $1
kill $PID
done