Skip to content

Commit c1a129d

Browse files
committed
Optimized the runner script.
1 parent 0c14f9f commit c1a129d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tools/run.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ help() {
3737

3838

3939
cleanup() {
40+
if [[ -d _site || -d .jekyll-cache ]]; then
41+
jekyll clean
42+
fi
43+
4044
rm -rf ${WORK_DIR}/${CONTAINER}
4145
ps aux | grep fswatch | awk '{print $2}' | xargs kill -9 > /dev/null 2>&1
4246
}

0 commit comments

Comments
 (0)