From afaa48b03c8d9dcbc7bbce47b94ec6bdd2da3502 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sat, 26 Dec 2020 23:37:48 +0100 Subject: Improved CSS variable names, improved script variable names, added initial support for finding child pages --- scripts/watch_content.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'scripts/watch_content.sh') 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 @@ #!/bin/bash inotifywait -qrme close_write,delete,move --format "%w%f" content \ - | while read FILENAME + | while read file do - if [ -f "$FILENAME" ]; then - scripts/build_content.sh "single" "$FILENAME" - elif [ ! -d "$FILENAME" ]; then - scripts/build_content.sh "delete" "$FILENAME" + if [ -f "$file" ]; then + scripts/build_content.sh "single" "$file" + elif [ ! -d "$file" ]; then + scripts/build_content.sh "delete" "$file" fi done -- cgit v1.2.3-54-g00ecf