diff options
Diffstat (limited to 'monitor-fswatch.sh')
| -rwxr-xr-x | monitor-fswatch.sh | 13 |
1 files changed, 13 insertions, 0 deletions
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 |
