core: 修复没安装 curl 时 --ssh-key 下载 key 报错

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