Skip to content

Commit

Permalink
fix[RayWangQvQ#728]: compatible with qinglong history versions
Browse files Browse the repository at this point in the history
  • Loading branch information
RayWangQvQ committed May 18, 2024
1 parent 368ed08 commit 0c58714
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
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
Expand Down
4 changes: 4 additions & 0 deletions qinglong/DefaultTasks/bili_task_base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions qinglong/DefaultTasks/dev/bili_dev_task_base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0c58714

Please sign in to comment.