From d90d07fa3938c944fe8897e7ce1d995bd660573d Mon Sep 17 00:00:00 2001 From: Volpeon Date: Wed, 30 Dec 2020 11:30:59 +0100 Subject: Better templates structure, better script config --- scripts/watch_content.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'scripts/watch_content.sh') diff --git a/scripts/watch_content.sh b/scripts/watch_content.sh index f0d1b42..92719d3 100755 --- a/scripts/watch_content.sh +++ b/scripts/watch_content.sh @@ -1,6 +1,12 @@ #!/bin/bash -inotifywait -qrme close_write,delete,move --format "%w%f" content \ +source "site.defaults.conf" + +if [ -f "site.conf" ]; then + source "site.conf" +fi + +inotifywait -qrme close_write,delete,move --format "%w%f" "${CONTENT_DIR%/}" \ | while read file do if [ -f "$file" ]; then -- cgit v1.2.3-70-g09d2