From d634a64c4ffa69dad3b6615ad9bcbddaadc7c26d Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Mon, 18 Nov 2019 21:37:09 +0800 Subject: [PATCH] Improved the runtime synch monitor. --- _scripts/sh/sync_monitor.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/_scripts/sh/sync_monitor.sh b/_scripts/sh/sync_monitor.sh index 09d5e14..9089785 100644 --- a/_scripts/sh/sync_monitor.sh +++ b/_scripts/sh/sync_monitor.sh @@ -5,11 +5,11 @@ # © 2019 Cotes Chung # MIT Licensed -# $1 -> the origin filen with absolute path. +# $1 -> the origin file with absolute path. # $2 -> the origin sync directory # $3 -> the destination sync direcotry -# Pass the system temp file +# Omit the system temp file if [[ ! -f $1 ]]; then exit 0 fi @@ -32,5 +32,6 @@ if [[ -f "$1" ]]; then fi if [[ $related_dir == "_posts" ]]; then - python $3/_scripts/py/pages_generator.py + python $3/_scripts/py/init_all.py + python $3/_scripts/py/update_posts_lastmod.py -f "$dest/$(basename $1)" -t fs fi