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-fswatch.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 monitor-fswatch.sh (limited to 'monitor-fswatch.sh') diff --git a/monitor-fswatch.sh b/monitor-fswatch.sh new file mode 100755 index 0000000..c989d69 --- /dev/null +++ b/monitor-fswatch.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +dir="${SRC_DIR:-pages}" + +set -euxo pipefail + +csi -s main.scm + +while true; do + fswatch -r -L -1 "${dir}" + sleep 1 + csi -s main.scm +done -- cgit v1.3