Skip to content

Commit d530090

Browse files
committed
Improved the runtime synch monitor.
1 parent 9c33256 commit d530090

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

_scripts/sh/sync_monitor.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
# © 2019 Cotes Chung
66
# MIT Licensed
77

8-
# $1 -> the origin filen with absolute path.
8+
# $1 -> the origin file with absolute path.
99
# $2 -> the origin sync directory
1010
# $3 -> the destination sync direcotry
1111

12-
# Pass the system temp file
12+
# Omit the system temp file
1313
if [[ ! -f $1 ]]; then
1414
exit 0
1515
fi
@@ -32,5 +32,6 @@ if [[ -f "$1" ]]; then
3232
fi
3333

3434
if [[ $related_dir == "_posts" ]]; then
35-
python $3/_scripts/py/pages_generator.py
35+
python $3/_scripts/py/init_all.py
36+
python $3/_scripts/py/update_posts_lastmod.py -f "$dest/$(basename $1)" -t fs
3637
fi

0 commit comments

Comments
 (0)