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:
13
run.sh
13
run.sh
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user