From 08e8aa12dda0b8873109f1f4068dda356238b361 Mon Sep 17 00:00:00 2001 From: bin456789 Date: Sun, 23 Jul 2023 17:05:52 +0800 Subject: [PATCH] =?UTF-8?q?core:=20=E5=8E=BB=E9=99=A4=20iso=20=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=A4=B4=E6=A3=80=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在 ubuntu 20.04 上,检测 ubuntu 22.04 iso 结果不正确 --- reinstall.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reinstall.sh b/reinstall.sh index 7967563..1742cba 100644 --- a/reinstall.sh +++ b/reinstall.sh @@ -256,7 +256,7 @@ setos() { # iso filename=$(curl -L $mirror | grep -oP "ubuntu-$releasever.*?-live-server-$basearch_alt.iso" | head -1) iso=$mirror/$filename - test_url $iso iso || exit 1 + test_url $iso || exit 1 eval ${step}_iso=$iso # ks @@ -288,7 +288,7 @@ setos() { if [ "$(echo "$image_name" | wc -w)" -lt 3 ]; then error_and_exit "--image-name wrong." fi - test_url $iso iso || exit 1 + test_url $iso || exit 1 eval "${step}_iso='$iso'" eval "${step}_image_name='$image_name'" }