mirror of
https://github.com/bin456789/reinstall.git
synced 2026-03-22 04:24:17 +08:00
@ -1687,6 +1687,7 @@ Continue with DD?
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [ -z "$iso" ]; then
|
||||||
# 对于同一行有多个成功匹配,grep -m1 无效
|
# 对于同一行有多个成功匹配,grep -m1 无效
|
||||||
iso=$(curl -L "https://fnnas.com/download$([ "$basearch" = aarch64 ] && echo -arm)" |
|
iso=$(curl -L "https://fnnas.com/download$([ "$basearch" = aarch64 ] && echo -arm)" |
|
||||||
grep -o 'https://[^"]*\.iso' | head -1 | grep .)
|
grep -o 'https://[^"]*\.iso' | head -1 | grep .)
|
||||||
@ -1699,6 +1700,7 @@ Continue with DD?
|
|||||||
-H 'Content-Type: application/json' \
|
-H 'Content-Type: application/json' \
|
||||||
https://www.fnnas.com/api/download-sign |
|
https://www.fnnas.com/api/download-sign |
|
||||||
grep -o 'https://[^"]*')
|
grep -o 'https://[^"]*')
|
||||||
|
fi
|
||||||
|
|
||||||
test_url "$iso" iso
|
test_url "$iso" iso
|
||||||
eval "${step}_iso='$iso'"
|
eval "${step}_iso='$iso'"
|
||||||
|
|||||||
Reference in New Issue
Block a user