core: 修复没安装 curl 时 --ssh-key 下载 key 报错
Some checks failed
运行主程序 / 运行主程序 (./reinstall.bat --debug --password 123@@@, windows-latest) (push) Has been cancelled
运行主程序 / 运行主程序 (sudo bash reinstall.sh --debug --password 123@@@, ubuntu-latest) (push) Has been cancelled
同步到 Gitlab / 同步到 Gitlab (push) Has been cancelled
同步到 Gitlab CN / 同步到 Gitlab CN (push) Has been cancelled

This commit is contained in:
bin456789 2025-03-06 21:04:50 +08:00
parent 7e3f12690e
commit cfd39be075
No known key found for this signature in database
GPG Key ID: EE301B386DE6C11B

View File

@ -116,6 +116,8 @@ error_and_exit() {
}
curl() {
is_have_cmd curl || install_pkg curl
# 添加 -f, --fail不然 404 退出码也为0
# 32位 cygwin 已停止更新,证书可能有问题,先添加 --insecure
# centos 7 curl 不支持 --retry-connrefused --retry-all-errors