From c7b002b594449213773ce27dc4bba4fc34bc85d3 Mon Sep 17 00:00:00 2001 From: Antony Messerli Date: Mon, 20 Nov 2023 18:07:56 -0600 Subject: [PATCH] Keep old method detection --- root/patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/patch b/root/patch index 0f1d593..9cb3b9c 100644 --- a/root/patch +++ b/root/patch @@ -13,7 +13,7 @@ fi - _curl_get "${archiso_http_srv}${archisobasedir}/${arch}/airootfs.${img_type}" "/${arch}" + _curl_get "${archiso_http_srv}/airootfs.${img_type}" "/${arch}" -+ if [ ! -z "$(/bin/curl -sI "${archiso_http_srv}/airootfs.${img_type}.part2" | grep "HTTP/2 200\|HTTP/2 302" || :)" ]; then ++ if [ ! -z "$(/bin/curl -sI "${archiso_http_srv}/airootfs.${img_type}.part2" | grep "200 OK\|302 Found\|HTTP/2 200\|HTTP/2 302" || :)" ]; then + curl -L -f "${archiso_http_srv}/airootfs.${img_type}.part2" -o ->> "/run/archiso/httpspace/${archisobasedir}/${arch}/airootfs.${img_type}" + fi