Skip to content

Commit

Permalink
Adjust checks
Browse files Browse the repository at this point in the history
  • Loading branch information
antonym committed Nov 20, 2023
1 parent c791230 commit 765d741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion root/patch
Original file line number Diff line number Diff line change
Expand Up @@ -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 "200 OK\|302 Found" || :)" ]; then
+ if [ ! -z "$(/bin/curl -sI "${archiso_http_srv}/airootfs.${img_type}.part2" | grep "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

Expand Down

0 comments on commit 765d741

Please sign in to comment.