Skip to content

Commit

Permalink
细节优化
Browse files Browse the repository at this point in the history
  • Loading branch information
yusheng929 committed Jul 16, 2024
1 parent dd79e6b commit af5bfec
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions my-docs/src/public/Y
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash

clear

Miao_url="https://gitee.com/yoimiya-kokomi/miao-plugin"
pm2_file="config/pm2/pm2.json"

current_time=$(date +"%Y-%m-%d %H:%M:%S")
echo "$current_time"

echo -e "\e[1;36m少女祈祷中...\e[0m"

if [ ! -f "$pm2_file" ]; then
echo "请在Miao-Yunzai根目录执行"
exit 1
fi

echo -e "\e[1;35m-\e[0m \e[1;32m开始重置项目\e[0m"

git reset --hard && git pull --rebase --allow-unrelated-histories

echo -e "\e[1;36m少女祈祷中...\e[0m"
echo -e "\e[1;35m-\e[0m \e[1;32m开始克隆miao-plugin\e[0m"
git clone --depth=1 https://gitee.com/yoimiya-kokomi/miao-plugin.git ./plugins/miao-plugin && pnpm i
echo -e "\e[1;35m-\e[0m \e[1;32m克隆完成\e[0m"

exit

0 comments on commit af5bfec

Please sign in to comment.