docs: fix watcher script

This commit is contained in:
ibizaman 2026-02-24 07:21:39 +01:00 committed by Pierre Penninckx
parent f485cc60fe
commit 9fcdff56bb

View file

@ -222,10 +222,14 @@
packages.manualHtml-watch = pkgs.writeShellApplication {
name = "manualHtml-watch";
runtimeInputs = [
pkgs.findutils
pkgs.entr
];
text = ''
while sleep 1; do
find . -name "*.nix" -o -name "*.md" \
| entr -d sh -c '(nix run --offline .#update-redirects && nix build --offline .#manualHtml || :)'
| entr -d sh -c '(nix run --offline .#update-redirects && nix build --offline .#manualHtml)' || :
done
'';
};