Refactor get_gentoo() to add create_vm() compatibility

This commit is contained in:
Martin Wimpress 2022-02-23 10:34:59 +00:00
parent 039d1773e4
commit 0ea2d1b3aa
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3

View File

@ -827,9 +827,7 @@ function get_gentoo() {
ISO=$(wget -q -O- "${URL}/${RELEASE}-iso.txt" | grep install | cut -d' ' -f1) ISO=$(wget -q -O- "${URL}/${RELEASE}-iso.txt" | grep install | cut -d' ' -f1)
HASH=$( wget -q -O- "${URL}/${ISO}.DIGESTS" | grep iso | grep -v CONTENTS | cut -d' ' -f1) HASH=$( wget -q -O- "${URL}/${ISO}.DIGESTS" | grep iso | grep -v CONTENTS | cut -d' ' -f1)
web_get "${URL}/${ISO}" "${VM_PATH}" echo "${URL}/${ISO} ${HASH}"
check_hash "$(basename "${ISO}")" "${HASH}"
make_vm_config "${ISO}"
} }
function get_ghostbsd() { function get_ghostbsd() {