macroblog.rs @ 7c7967ebc8f7a1f67965f2300dde39fab0adc340

 1#!/bin/sh
 2
 3sigint_handler()
 4{
 5  kill $PID
 6  exit
 7}
 8
 9trap sigint_handler SIGINT
10
11while true; do
12  cargo run &
13  PID=$!
14  inotifywait -e modify -e move -e create -e delete -e attrib -r  src/ templates/ content/
15  kill $PID
16done