summaryrefslogtreecommitdiffstats
path: root/scripts/watch_metadata.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/watch_metadata.sh')
-rwxr-xr-xscripts/watch_metadata.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/watch_metadata.sh b/scripts/watch_metadata.sh
index 780177e..cc02ea7 100755
--- a/scripts/watch_metadata.sh
+++ b/scripts/watch_metadata.sh
@@ -1,6 +1,12 @@
1#!/bin/bash 1#!/bin/bash
2 2
3inotifywait -qrme close_write,delete,move --format "%w%f" metadata \ 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" "${METADATA_DIR%/}" \
4 | while read file 10 | while read file
5 do 11 do
6 scripts/build_content.sh "all_md" 12 scripts/build_content.sh "all_md"