mirror of
https://github.com/bin456789/reinstall.git
synced 2026-06-11 22:34:30 +08:00
core: 修复转换为 daocloud 链接时出错
This commit is contained in:
@@ -245,7 +245,7 @@ download() {
|
||||
|
||||
if ! aria2c "$url" "$@" &&
|
||||
! { $can_use_cn_mirror && is_in_china && is_any_ipv4_has_internet &&
|
||||
url_cn=https://files.m.daocloud.io/$(echo "$url" | sed -Ei 's,^https?://,,') &&
|
||||
url_cn=https://files.m.daocloud.io/$(echo "$url" | sed -E 's,^https?://,,i') &&
|
||||
aria2c "$url_cn" "$@"; }; then
|
||||
error_and_exit "Failed to download $url"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user