mirror of
https://github.com/bin456789/reinstall.git
synced 2025-06-22 04:09:53 +00:00
core: 修复没安装 curl 时 --ssh-key 下载 key 报错
This commit is contained in:
parent
7e3f12690e
commit
cfd39be075
@ -116,6 +116,8 @@ error_and_exit() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
curl() {
|
curl() {
|
||||||
|
is_have_cmd curl || install_pkg curl
|
||||||
|
|
||||||
# 添加 -f, --fail,不然 404 退出码也为0
|
# 添加 -f, --fail,不然 404 退出码也为0
|
||||||
# 32位 cygwin 已停止更新,证书可能有问题,先添加 --insecure
|
# 32位 cygwin 已停止更新,证书可能有问题,先添加 --insecure
|
||||||
# centos 7 curl 不支持 --retry-connrefused --retry-all-errors
|
# centos 7 curl 不支持 --retry-connrefused --retry-all-errors
|
||||||
|
Loading…
x
Reference in New Issue
Block a user