summaryrefslogtreecommitdiffstats
path: root/scripts/watch_content.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/watch_content.sh')
-rwxr-xr-xscripts/watch_content.sh8
1 files changed, 7 insertions, 1 deletions
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 @@
1#!/bin/bash 1#!/bin/bash
2 2
3inotifywait -qrme close_write,delete,move --format "%w%f" content \ 3source "site.defaults.conf"
4
5if [ -f "site.conf" ]; then
6 source "site.conf"
7fi
8
9inotifywait -qrme close_write,delete,move --format "%w%f" "${CONTENT_DIR%/}" \
4 | while read file 10 | while read file
5 do 11 do
6 if [ -f "$file" ]; then 12 if [ -f "$file" ]; then