Added support for RebornOS in quickget

Added support for RebornOS, tested and working.
This commit is contained in:
hi-phile 2023-01-25 18:47:15 -08:00 committed by Martin Wimpress
parent 75c80d89fd
commit b46aca69c9

View File

@ -60,6 +60,7 @@ function pretty_name() {
oraclelinux) PRETTY_NAME="Oracle Linux";;
popos) PRETTY_NAME="Pop!_OS";;
reactos) PRETTY_NAME="ReactOS";;
rebornos) PRETTY_NAME="RebornOS";;
rockylinux) PRETTY_NAME="Rocky Linux";;
ubuntu-budgie) PRETTY_NAME="Ubuntu Budgie";;
ubuntukylin) PRETTY_NAME="Ubuntu Kylin";;
@ -203,6 +204,7 @@ function os_support() {
oraclelinux \
popos \
reactos \
rebornos \
rockylinux \
slackware \
solus \
@ -471,6 +473,16 @@ function releases_reactos() {
echo latest
}
function releases_rebornos() {
echo latest
}
function get_rebornos() {
local ISO=$(curl -s 'https://www.rebornos.org/download/' | grep -ohE 'https://pub-cb7a4d4f7a974896b3bf40c52d1defbc.r2.dev/RebornOS-ISO/(rebornos_xfce_minimal|rebornos_iso)-[0-9]{4}.[0-9]{2}.[0-9]{2}-x86_64.iso' | tail -n1)
local HASH=$(curl -s 'https://www.rebornos.org/download/' | grep -ozP 'Checksum MD5:.*[0-9a-fA-F]{32}' | grep -zoP '[0-9a-fA-F]{32}' | cut -d '' -f1)
echo "${ISO} ${HASH}"
}
function releases_rockylinux() {
echo 8.3 8.4 8.5 9.0
}