summaryrefslogtreecommitdiffstats
path: root/scripts/watch_content.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/watch_content.sh')
-rwxr-xr-xscripts/watch_content.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/watch_content.sh b/scripts/watch_content.sh
index 769f2c5..f0d1b42 100755
--- a/scripts/watch_content.sh
+++ b/scripts/watch_content.sh
@@ -1,11 +1,11 @@
1#!/bin/bash 1#!/bin/bash
2 2
3inotifywait -qrme close_write,delete,move --format "%w%f" content \ 3inotifywait -qrme close_write,delete,move --format "%w%f" content \
4 | while read FILENAME 4 | while read file
5 do 5 do
6 if [ -f "$FILENAME" ]; then 6 if [ -f "$file" ]; then
7 scripts/build_content.sh "single" "$FILENAME" 7 scripts/build_content.sh "single" "$file"
8 elif [ ! -d "$FILENAME" ]; then 8 elif [ ! -d "$file" ]; then
9 scripts/build_content.sh "delete" "$FILENAME" 9 scripts/build_content.sh "delete" "$file"
10 fi 10 fi
11 done 11 done