mirror of
https://github.com/bin456789/reinstall.git
synced 2026-02-21 10:27:50 +08:00
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
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:
parent
7e3f12690e
commit
cfd39be075
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user