chore(tools): improve the init-script

This commit is contained in:
Cotes Chung
2024-08-19 05:10:34 +08:00
parent 23729c9c8f
commit d74bfaeda2
+4 -4
View File
@@ -80,13 +80,13 @@ init_files() {
rm -rf .github && mkdir -p .github/workflows
mv "$temp/$ACTIONS_WORKFLOW" .github/workflows/"$ACTIONS_WORKFLOW"
rm -rf "$temp"
## Cleanup image settings in site config
_sedi "s/(^timezone:).*/\1/;s/(^.*cdn:).*/\1/;s/(^avatar:).*/\1/" _config.yml
fi
# Cleanup image settings in site config
_sedi "s/(^timezone:).*/\1/;s/(^.*cdn:).*/\1/;s/(^avatar:).*/\1/" _config.yml
# remove the other files
rm -rf _posts/*
rm -rf tools/init.sh tools/release.sh _posts/*
# build assets
npm i && npm run build