diff options
author | Volpeon <git@volpeon.ink> | 2020-12-23 09:10:31 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2020-12-23 09:10:31 +0100 |
commit | 3b15d49467a4ea81c3adf101b806d7236ba395bb (patch) | |
tree | 66e1e924d535b9790730f76f3bdc148b5b774947 /scripts/watch_content.sh | |
parent | Inlined simple scripts in the makefile (diff) | |
download | volpeon.ink-3b15d49467a4ea81c3adf101b806d7236ba395bb.tar.gz volpeon.ink-3b15d49467a4ea81c3adf101b806d7236ba395bb.tar.bz2 volpeon.ink-3b15d49467a4ea81c3adf101b806d7236ba395bb.zip |
Better build script, allow static files in content folder
Diffstat (limited to 'scripts/watch_content.sh')
-rwxr-xr-x | scripts/watch_content.sh | 3 |
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 | ||
3 | inotifywait -rme create,close_write,delete,move --format "%w%f" content \ | 3 | inotifywait -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 |