From 213f8c2ce1d6c27bf579e7cb440e6ff53f076d30 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Wed, 23 Dec 2020 17:57:36 +0100 Subject: Added favicon, also watch templates folder --- scripts/build_content.sh | 2 +- scripts/watch_templates.sh | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100755 scripts/watch_templates.sh (limited to 'scripts') diff --git a/scripts/build_content.sh b/scripts/build_content.sh index 460a3fe..0698ee0 100755 --- a/scripts/build_content.sh +++ b/scripts/build_content.sh @@ -39,7 +39,7 @@ if [ -z "$1" ]; then done elif [ "$2" = "delete" ]; then TARGET=$(target "$1") - echo "[DELETE] $1 -> $TARGET" + echo "[DELETE ] $1 -> $TARGET" rm -rf $TARGET else handle "$1" diff --git a/scripts/watch_templates.sh b/scripts/watch_templates.sh new file mode 100755 index 0000000..160a46c --- /dev/null +++ b/scripts/watch_templates.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +inotifywait -qrme close_write,delete,move --format "%w%f" templates \ + | while read FILENAME + do + scripts/build_content.sh + done -- cgit v1.2.3-54-g00ecf