# Template file for 'ghostbsd' OSNAME="ghostbsd" PRETTY="GhostBSD" BASEDOF="FreeBSD" DESCRIPTION="Simple, elegant desktop BSD Operating System" HOMEPAGE="https://www.ghostbsd.org" CREDENTIALS="-" freebsd RELEASES="25.01-R14.2p1 24.10.1 24.07.3" EDITIONS="xfce mate" function releases_() { #shellcheck disable=SC2046,SC2005 echo $(web_pipe "https://download.ghostbsd.org/releases/amd64/" | grep "href" | cut -d'"' -f2 | cut -d'/' -f1 | sort -r | tail -n +3 | head -n 3) } function editions_() { echo mate xfce } function get_() { local ISO="" local URL="https://download.ghostbsd.org/releases/amd64/${RELEASE}" local HASH="" case ${EDITION} in mate) ISO="GhostBSD-${RELEASE}.iso";; xfce) ISO="GhostBSD-${RELEASE}-XFCE.iso";; esac HASH=$(web_pipe "${URL}/${ISO}.sha256" | grep "${ISO}" | cut -d' ' -f4) echo "${URL}/${ISO} ${HASH}" }