summaryrefslogtreecommitdiffstats
path: root/scripts/watch_content.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/watch_content.sh')
-rwxr-xr-xscripts/watch_content.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/watch_content.sh b/scripts/watch_content.sh
index 60f7b07..c4f55fb 100755
--- a/scripts/watch_content.sh
+++ b/scripts/watch_content.sh
@@ -1,9 +1,8 @@
1#!/bin/bash 1#!/bin/bash
2 2
3inotifywait -rme create,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 FILENAME
5 do 5 do
6 printf "Change detected: %s\n" "$FILENAME"
7 if [ -f "$FILENAME" ]; then 6 if [ -f "$FILENAME" ]; then
8 scripts/build_content.sh "$FILENAME" 7 scripts/build_content.sh "$FILENAME"
9 elif [ ! -d "$FILENAME" ]; then 8 elif [ ! -d "$FILENAME" ]; then