This commit is contained in:
parent
2aa4ab7096
commit
ecf19f0cf2
1 changed files with 2 additions and 0 deletions
|
@ -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`
|
And something to run our build when files change. In the spirit of homebrewing boring stuff - I made `~/bin/make-watch`
|
||||||
|
|
||||||
```bash
|
```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
|
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
|
if [[ $last_run_seconds -eq 0 ]]; then
|
||||||
make "$@"
|
make "$@"
|
||||||
|
|
Loading…
Add table
Reference in a new issue