-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dd79e6b
commit af5bfec
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |