From 71f97adcc4773fd4f538daa2da38c7596926fa30 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Tue, 26 Mar 2024 21:22:00 +0200 Subject: Fix bugs, prepare for deployment --- monitor-inotifywait.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 monitor-inotifywait.sh (limited to 'monitor-inotifywait.sh') diff --git a/monitor-inotifywait.sh b/monitor-inotifywait.sh new file mode 100755 index 0000000..03fefae --- /dev/null +++ b/monitor-inotifywait.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +dir="${SRC_DIR:-pages}" + +set -euxo pipefail + +csi -s main.scm + +while true; do + inotifywait -r -q "${dir}" + sleep 1 + csi -s main.scm +done -- cgit v1.3