blob: 66b726f09e2b48fdfea7111d666442d69c984a0c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/bash
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
# scripts/build_content.sh "single" "$file"
scripts/build_content.sh "all_md"
elif [ ! -d "$file" ]; then
scripts/build_content.sh "delete" "$file"
fi
done
|