Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix[#728]: compatible with qinglong history versions #729

Merged
merged 13 commits into from
May 18, 2024
Prev Previous commit
Next Next commit
fix[#728]: compatible with qinglong history versions
RayWangQvQ committed May 18, 2024
commit 0c58714e39e3782ef8b0891d183c1bd571b01e7a
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## 2.1.2
- Feature: enhancement CICD scripts
- Fix[#728]: compatible with qinglong history versions
## 2.1.1
- Feature: listen ctrl+c at the very beginning
- Fix: fix qinglong read cron error
4 changes: 4 additions & 0 deletions qinglong/DefaultTasks/bili_task_base.sh
Original file line number Diff line number Diff line change
@@ -72,6 +72,10 @@ MemoryWarn=${MemoryWarn:-""}
DiskWarn=${DiskWarn:-""}

dir_repo=${dir_repo:-"$QL_DIR/data/repo"}
# 需要兼容老版本青龙,https://github.com/RayWangQvQ/BiliBiliToolPro/issues/728
if [ ! -d "$dir_repo" ] && [ -d "$QL_DIR/repo" ]; then
dir_repo="$QL_DIR/repo"
fi
dir_shell=$QL_DIR/shell
touch $dir_shell/env.sh && . $dir_shell/env.sh
touch /root/.bashrc && . /root/.bashrc
4 changes: 4 additions & 0 deletions qinglong/DefaultTasks/dev/bili_dev_task_base.sh
Original file line number Diff line number Diff line change
@@ -72,6 +72,10 @@ MemoryWarn=${MemoryWarn:-""}
DiskWarn=${DiskWarn:-""}

dir_repo=${dir_repo:-"$QL_DIR/data/repo"}
# 需要兼容老版本青龙,https://github.com/RayWangQvQ/BiliBiliToolPro/issues/728
if [ ! -d "$dir_repo" ] && [ -d "$QL_DIR/repo" ]; then
dir_repo="$QL_DIR/repo"
fi
dir_shell=$QL_DIR/shell
touch $dir_shell/env.sh && . $dir_shell/env.sh
touch /root/.bashrc && . /root/.bashrc