Optimized the runner script.

This commit is contained in:
Cotes Chung 2020-02-17 22:54:30 +08:00
parent a82d3647da
commit fd56f5b600
1 changed files with 4 additions and 0 deletions

View File

@ -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
}