Refactor get_openbsd()
This commit is contained in:
parent
fb39f67a5b
commit
bee4d52457
6
quickget
6
quickget
@ -1082,10 +1082,10 @@ function get_openbsd() {
|
|||||||
local URL=""
|
local URL=""
|
||||||
|
|
||||||
validate_release "releases_openbsd"
|
validate_release "releases_openbsd"
|
||||||
|
URL="https://cdn.openbsd.org/pub/OpenBSD/${RELEASE}/amd64"
|
||||||
ISO="install${RELEASE//\./}.iso"
|
ISO="install${RELEASE//\./}.iso"
|
||||||
URL="https://cdn.openbsd.org/pub/OpenBSD/${RELEASE}/amd64/${ISO}"
|
HASH=$(wget -q -O- "${URL}/SHA256" | grep "${ISO}" | cut -d' ' -f4)
|
||||||
HASH=$(wget -q -O- "https://cdn.openbsd.org/pub/OpenBSD/${RELEASE}/amd64/SHA256" | grep "${ISO}" | cut -d' ' -f4)
|
web_get "${URL}/${ISO}" "${VM_PATH}"
|
||||||
web_get "${URL}" "${VM_PATH}"
|
|
||||||
check_hash "${ISO}" "${HASH}"
|
check_hash "${ISO}" "${HASH}"
|
||||||
make_vm_config "${ISO}"
|
make_vm_config "${ISO}"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user