1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-18 05:41:31 +00:00

Improved the assistant scripts.

This commit is contained in:
Cotes Chung
2019-10-01 03:38:36 +08:00
parent 9913da88cc
commit a76e41a5dc
2 changed files with 25 additions and 27 deletions

13
run.sh
View File

@@ -32,15 +32,10 @@ init() {
rm -rf .container
fi
if [[ -d ../.chirpy-cache ]]; then
rm -rf ../.chirpy-cache
fi
mkdir ../.chirpy-cache
cp -r * ../.chirpy-cache
cp -r .git ../.chirpy-cache
mv ../.chirpy-cache .container
temp=$(mktemp -d)
cp -r * $temp
cp -r .git $temp
mv $temp .container
trap cleanup INT
}