Files
BiliBiliToolPro/qinglong/DefaultTasks/dev/bili_dev_task_tryFix.sh
database-mysql e519cac94e
Some checks failed
CodeQL / Analyze (csharp) (push) Has been cancelled
Close Stale Issues / close_stale_issues (push) Has been cancelled
repo-sync / repo-sync (push) Has been cancelled
auto-deploy-tencent-scf / pre-check (push) Has been cancelled
auto-deploy-tencent-scf / deploy serverless (push) Has been cancelled
pull file
2026-02-11 23:32:56 +08:00

34 lines
1011 B
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env bash
# cron:0 0 1 1 *
# new Env("bili尝试修复异常[dev先行版]")
dir_shell=$QL_DIR/shell
. $dir_shell/share.sh
. /root/.bashrc
bili_repo="raywangqvq/bilibilitoolpro"
bili_branch="_develop"
echo "青龙repo目录: $dir_repo"
qinglong_bili_repo="$(echo "$bili_repo" | sed 's/\//_/g')${bili_branch}"
qinglong_bili_repo_dir="$(find $dir_repo -type d \( -iname $qinglong_bili_repo -o -iname ${qinglong_bili_repo}_main \) | head -1)"
echo "bili仓库目录: $qinglong_bili_repo_dir"
echo -e "清理缓存...\n"
cd $qinglong_bili_repo_dir
find . -type d -name "bin" -exec rm -rf {} +
find . -type d -name "obj" -exec rm -rf {} +
echo -e "清理完成\n"
echo "检测dotnet..."
dotnetVersion=$(dotnet --version)
echo "当前dotnet版本$dotnetVersion"
if [[ $(echo "$dotnetVersion" | grep -oE '^[0-9]+') -ge 8 ]]; then
echo "已安装,且版本满足"
else
echo "which dotnet: $(which dotnet)"
echo "Path: $PATH"
rm -f /usr/local/bin/dotnet
fi
echo "检测dotnet结束"