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

【其他】<脚本一直运行> #811

Open
1 of 2 tasks
wongleslie1 opened this issue Dec 16, 2024 · 1 comment
Open
1 of 2 tasks

【其他】<脚本一直运行> #811

wongleslie1 opened this issue Dec 16, 2024 · 1 comment

Comments

@wongleslie1
Copy link

wongleslie1 commented Dec 16, 2024

确认

  • 是的,我确认要选Other,因为我的内容既不是Bug,也不是Feature
  • 是的,我已搜索并确认,没有其他相同的议题

描述

<脚本一直运行,结束不了了,运行了几个小时了>

v2.1.2 开源 by https://github.com/RayWangQvQ/BiliBiliToolPro

[16:54:47 INF] ·开始推送·Daily任务·
2024-12-16T08:54:47.8607847Z 开始推送到:PushPlus
2024-12-16T08:54:48.6005911Z Response status: OK.
2024-12-16T08:54:48.6006835Z Response content: {"code":200,"msg":"请求成功","data":"d1eca603aa8f4a96946d61d5033619ac","count":null}.

[16:54:48 INF] 运行环境:Production
[16:54:48 INF] 应用目录:/ql/data/repo/RayWangQvQ_BiliBiliToolPro_develop/src/Ray.BiliBiliTool.Console/bin/Debug/net6.0/

[16:54:48 INF] 运行结束
/ql/shell/share.sh: line 464: task_after: unbound variable

@lxcsjk
Copy link

lxcsjk commented Dec 19, 2024

进到容器的 /shell/share.sh
修改第464行的代码

run_task_after() {
  . $file_task_after "$@"
  if [[ "${task_after:-}" ]]; then
    echo -e "\n执行后置命令\n"
    eval "$task_after" "$@"
    echo -e "\n执行后置命令结束"
  fi
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants