diff --git a/posts/style_a_blog.md b/posts/style_a_blog.md index 4093aa6..a9cd1e3 100644 --- a/posts/style_a_blog.md +++ b/posts/style_a_blog.md @@ -24,6 +24,8 @@ Basically just a golang `http.FileServer` that uses `Cache-Control: "no-cache, n And something to run our build when files change. In the spirit of homebrewing boring stuff - I made `~/bin/make-watch` ```bash +last_run_seconds=0 +grace_seconds=1 inotifywait -r -m --exclude "${dir}/.git\/" -e modify -e create -e delete "$dir" | while read -r event; do if [[ $last_run_seconds -eq 0 ]]; then make "$@"