Refactor get_haiku() to add create_vm() compatibility
This commit is contained in:
parent
c36463d85d
commit
723a185346
10
quickget
10
quickget
@ -846,16 +846,12 @@ function get_ghostbsd() {
|
|||||||
|
|
||||||
function get_haiku() {
|
function get_haiku() {
|
||||||
local EDITION="${1:-}"
|
local EDITION="${1:-}"
|
||||||
local ISO=""
|
local ISO="haiku-${RELEASE}-${EDITION}-anyboot.iso"
|
||||||
local URL=""
|
local URL="https://cdn.haiku-os.org/haiku-release/${RELEASE}"
|
||||||
local HASH=""
|
local HASH=""
|
||||||
|
|
||||||
URL="https://cdn.haiku-os.org/haiku-release/${RELEASE}"
|
|
||||||
ISO="haiku-${RELEASE}-${EDITION}-anyboot.iso"
|
|
||||||
HASH=$(wget -q -O- "${URL}/${ISO}.sha256" | grep "${ISO}" | cut -d' ' -f4)
|
HASH=$(wget -q -O- "${URL}/${ISO}.sha256" | grep "${ISO}" | cut -d' ' -f4)
|
||||||
web_get "${URL}/${ISO}" "${VM_PATH}"
|
echo "${URL}/${ISO} ${HASH}"
|
||||||
check_hash "${ISO}" "${HASH}"
|
|
||||||
make_vm_config "${ISO}"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_kali() {
|
function get_kali() {
|
||||||
|
Loading…
Reference in New Issue
Block a user