From fd56f5b6004d5316de319b0f14ce6839e9bab58a Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Mon, 17 Feb 2020 22:54:30 +0800 Subject: [PATCH] Optimized the runner script. --- tools/run.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/run.sh b/tools/run.sh index b45659e..d75e272 100755 --- a/tools/run.sh +++ b/tools/run.sh @@ -37,6 +37,10 @@ help() { cleanup() { + if [[ -d _site || -d .jekyll-cache ]]; then + jekyll clean + fi + rm -rf ${WORK_DIR}/${CONTAINER} ps aux | grep fswatch | awk '{print $2}' | xargs kill -9 > /dev/null 2>&1 }