mirror of
https://github.com/bin456789/reinstall.git
synced 2026-10-03 22:17:46 +08:00
windows: 更新 ntriver 链接格式
This commit is contained in:
+2
-2
@@ -1722,9 +1722,9 @@ Continue?
|
|||||||
if false && test_url_grace "$iso" iso 2>/dev/null; then
|
if false && test_url_grace "$iso" iso 2>/dev/null; then
|
||||||
iso_is_tested=true
|
iso_is_tested=true
|
||||||
iso_is_direct_link=true
|
iso_is_direct_link=true
|
||||||
elif [[ $(echo "$iso" | to_lower) =~ ^https://ntriver.org/drive/.*\.(iso|img)$ ]]; then
|
elif [[ $(echo "$iso" | to_lower) =~ ^https://ntriver.org/drive\?.*\.(iso|img)$ ]]; then
|
||||||
info "get direct link"
|
info "get direct link"
|
||||||
local iso_name=${iso##*/}
|
local iso_name=${iso##*\?}
|
||||||
local direct_link
|
local direct_link
|
||||||
if direct_link=$(curl -L "https://delivery-api.ntriver.org/generate-link?filename=$iso_name" |
|
if direct_link=$(curl -L "https://delivery-api.ntriver.org/generate-link?filename=$iso_name" |
|
||||||
grep -oE '"url":"[^"]+"' | cut -d: -f2- | tr -d '"' | grep .); then
|
grep -oE '"url":"[^"]+"' | cut -d: -f2- | tr -d '"' | grep .); then
|
||||||
|
|||||||
Reference in New Issue
Block a user