style_a_blog: bash example
All checks were successful
/ build (push) Successful in 6s

This commit is contained in:
Collin Lefeber 2025-02-23 16:40:46 -05:00
parent 2aa4ab7096
commit ecf19f0cf2

View file

@ -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 "$@"