Respect edition param when quickgetting freebsd

This commit is contained in:
Ranjan Purbey 2022-03-06 12:10:44 +05:30 committed by GitHub
parent 3940f7b452
commit 89c5569c03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -889,8 +889,9 @@ function get_fedora() {
}
function get_freebsd() {
local EDITION="${1}"
local HASH=""
local ISO="FreeBSD-${RELEASE}-RELEASE-amd64-dvd1.iso"
local ISO="FreeBSD-${RELEASE}-RELEASE-amd64-${EDITION}.iso"
local URL="https://download.freebsd.org/ftp/releases/amd64/amd64/ISO-IMAGES/${RELEASE}"
HASH=$(wget -q -O- "${URL}/CHECKSUM.SHA256-FreeBSD-${RELEASE}-RELEASE-amd64" | grep "${ISO}" | grep -v ".xz" | cut -d' ' -f4)