From 97779b6f6eda6f50b6c33ab390591003b878f133 Mon Sep 17 00:00:00 2001 From: bin456789 Date: Wed, 6 Aug 2025 20:58:14 +0800 Subject: [PATCH] =?UTF-8?q?fnos:=20=E4=BF=AE=E5=A4=8D=20iso=20=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixes #406 --- reinstall.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/reinstall.sh b/reinstall.sh index 85dd1d3..2ce3a1a 100644 --- a/reinstall.sh +++ b/reinstall.sh @@ -1565,7 +1565,17 @@ Continue with DD? fi done - iso=$(curl -L https://fnnas.com/ | grep -o 'https://[^"]*\.iso' | head -1) + iso=$(curl -L https://fnnas.com/ | grep -o 'https://[^"]*\.iso' | head -1 | grep .) + + # curl 7.82.0+ + # curl -L --json '{"url":"'$iso'"}' https://www.fnnas.com/api/download-sign + + iso=$(curl -L \ + -d '{"url":"'$iso'"}' \ + -H 'Content-Type: application/json' \ + https://www.fnnas.com/api/download-sign | + grep -o 'https://[^"]*') + test_url "$iso" iso eval "${step}_iso='$iso'" }