blob: 38567dcca1e71d884347137674590562ce0a03f8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/bash
inotifywait -rme create,close_write,delete,move --format "%f" content \
| while read FILENAME
do
printf "Change detected: %s\n" "content/$FILENAME"
if [ -f "content/$FILENAME" ]; then
scripts/build_content.sh "content/$FILENAME"
else
scripts/build_content.sh "content/$FILENAME" "delete"
fi
done
|