mirror of
https://github.com/bin456789/reinstall.git
synced 2025-06-21 11:49:58 +00:00
core: 修复没安装 curl 时 --ssh-key 下载 key 报错
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…
x
Reference in New Issue
Block a user