From 8d2e9e5f66e65ca05aaa796d3802f91cf6703be4 Mon Sep 17 00:00:00 2001 From: gravel Date: Fri, 21 Apr 2023 16:16:35 +0200 Subject: [PATCH] Make watchdog respond to new files --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 614a3660..e436cda9 100644 --- a/Makefile +++ b/Makefile @@ -49,9 +49,10 @@ lan-server: open: xdg-open "http://localhost:$(PORT)" >/dev/null 2>/dev/null & disown -# Update HTML on file change. Doesn't check for new files. +# Update HTML on file change. watchdog: - find . | grep -v ".git" | entr -n -s "$(MAKE) html" + set -o pipefail; \ + while :; do find . | grep -v ".git" | entr -nds "$(MAKE) html" && exit; done # Remove artefacts clean: