blob: f0d1b42f9365fcec02321375510a6a3cb4302961 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/bash
inotifywait -qrme close_write,delete,move --format "%w%f" content \
| while read file
do
if [ -f "$file" ]; then
scripts/build_content.sh "single" "$file"
elif [ ! -d "$file" ]; then
scripts/build_content.sh "delete" "$file"
fi
done
|