docs: fix watcher script
This commit is contained in:
parent
f485cc60fe
commit
9fcdff56bb
1 changed files with 5 additions and 1 deletions
|
|
@ -222,10 +222,14 @@
|
||||||
|
|
||||||
packages.manualHtml-watch = pkgs.writeShellApplication {
|
packages.manualHtml-watch = pkgs.writeShellApplication {
|
||||||
name = "manualHtml-watch";
|
name = "manualHtml-watch";
|
||||||
|
runtimeInputs = [
|
||||||
|
pkgs.findutils
|
||||||
|
pkgs.entr
|
||||||
|
];
|
||||||
text = ''
|
text = ''
|
||||||
while sleep 1; do
|
while sleep 1; do
|
||||||
find . -name "*.nix" -o -name "*.md" \
|
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
|
done
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue