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

【建议】<针对通过fock拉取代码包后青龙面板无法正常运行的一些情况> #781

Open
aspnmy opened this issue Sep 7, 2024 · 0 comments

Comments

@aspnmy
Copy link

aspnmy commented Sep 7, 2024

情形复现

  • 基础脚本*_bash.sh中
    bili_repo="raywangqvq/bilibilitoolpro" # 仓库地址 输入官方分支,或者加速分支目录
  • 变量bili_repo 为硬码形式写入脚本,如果我们采用foxk的形式,拉了分支到自己仓库修改,并down到服务器上运行,
    运行基础脚本以后,会有以下错误:
say "bili仓库目录: $qinglong_bili_repo_dir"
# $qinglong_bili_repo_dir 这个值为空值,然后后续程序报错,报错错误并未明确指明原因和入口

建议说明

  • 针对使用fock拉取分支的情况,建议把bili_repo做在环境变量中可以修改调整,未配置环境变量的情形下再读原始值,可具备兼容性

bili_repo=${BILI_TRUETRUE_REPONAME:-"raywangqvq/bilibilitoolpro"}

其他兼容性建议

部分sh脚本中都有脚本内部定义变量,不是私有变量的情况下,建议以系统变量的形式读取,无系统变量再读默认值,
这样兼容性更加

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

1 participant