From ecf19f0cf26933d551b95d7e103c3612ccf46563 Mon Sep 17 00:00:00 2001 From: Collin Lefeber Date: Sun, 23 Feb 2025 16:40:46 -0500 Subject: [PATCH] style_a_blog: bash example --- posts/style_a_blog.md | 2 ++ 1 file changed, 2 insertions(+) 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 "$@"