From 3cdfe211b4e69d5b4d30f760953000af5c6dfcf5 Mon Sep 17 00:00:00 2001 From: Jordan Day Date: Mon, 13 Dec 2021 10:31:37 -0600 Subject: [PATCH] Set URL to 'Current' ISO for Leap >= 15.2 --- quickget | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/quickget b/quickget index 84be965..6145e98 100755 --- a/quickget +++ b/quickget @@ -1014,10 +1014,14 @@ function get_opensuse() { ISO="openSUSE-MicroOS-DVD-x86_64-Current.iso" URL="https://download.opensuse.org/tumbleweed/iso/${ISO}" HASH=$(wget -q -O- "${URL}.sha256" | cut -d' ' -f1) - else + elif [ "$RELEASE" == 15.0 ] || [ "$RELEASE" == 15.1 ]; then ISO="openSUSE-Leap-${RELEASE}-DVD-x86_64.iso" URL="https://download.opensuse.org/distribution/leap/${RELEASE}/iso/${ISO}" HASH=$(wget -q -O- "${URL}.sha256" | cut -d' ' -f1) + else + ISO="openSUSE-Leap-${RELEASE}-DVD-x86_64-Current.iso" + URL="https://download.opensuse.org/distribution/leap/${RELEASE}/iso/${ISO}" + HASH=$(wget -q -O- "${URL}.sha256" | cut -d' ' -f1) fi web_get "${URL}" "${VM_PATH}" check_hash "${ISO}" "${HASH}"