INFO=" |Rocky Linux|RedHat||https://rockylinux.org/|Open-source enterprise operating system designed to be 100% bug-for-bug compatible with Red Hat Enterprise Linux®.";; function releases_rockylinux() { echo 9.1 9.0 8.7 8.6 8.5 8.4 8.3 } function editions_rockylinux() { echo minimal dvd boot } function get_rockylinux() { local EDITION="${1:-}" if [[ "${RELEASE}" =~ ^8. ]] && [[ "${EDITION}" == "dvd" ]] then EDITION="dvd1" fi local HASH="" local ISO="Rocky-${RELEASE}-x86_64-${EDITION}.iso" local URL="" case ${RELEASE} in 9.1) URL="https://download.rockylinux.org/pub/rocky/9/isos/x86_64";; 8.7) URL="https://download.rockylinux.org/pub/rocky/8/isos/x86_64";; *) URL="http://dl.rockylinux.org/vault/rocky/${RELEASE}/isos/x86_64";; esac HASH=$(wget -q -O- "${URL}/CHECKSUM" | grep "SHA256" | grep "${ISO})" | cut -d' ' -f4) echo "${URL}/${ISO} ${HASH}" }