diff options
Diffstat (limited to 'scripts/watch_content.sh')
-rwxr-xr-x | scripts/watch_content.sh | 8 |
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 | ||
3 | inotifywait -qrme close_write,delete,move --format "%w%f" content \ | 3 | source "site.defaults.conf" |
4 | |||
5 | if [ -f "site.conf" ]; then | ||
6 | source "site.conf" | ||
7 | fi | ||
8 | |||
9 | inotifywait -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 |