Skip to content

Commit

Permalink
chore(tools): improve the init-script
Browse files Browse the repository at this point in the history
  • Loading branch information
cotes2020 committed Aug 18, 2024
1 parent 23729c9 commit d74bfae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d74bfae

Please sign in to comment.