refactor: simplify get_elementary()

This commit is contained in:
Martin Wimpress 2024-04-20 10:42:21 +01:00 committed by Martin Wimpress
parent dbcbd12c80
commit a260e9b45d
1 changed files with 3 additions and 7 deletions

View File

@ -2083,14 +2083,10 @@ function get_easyos() {
function get_elementary() {
local HASH=""
case ${RELEASE} in
7.0)
local ISO="elementaryos-${RELEASE}-stable.20230129rc.iso"
;;
7.1)
local ISO="elementaryos-${RELEASE}-stable.20230926rc.iso"
HASH="5c7f6b388e5787c366587985301ea05ab16e4cc0de3be2b3d6a559ce81a2f102"
;;
7.0) STAMP="20230129rc";;
7.1) STAMP="20230926rc";;
esac
local ISO="elementaryos-${RELEASE}-stable.${STAMP}.iso"
local URL="https://ams3.dl.elementary.io/download"
echo "${URL}/$(date +%s | base64)/${ISO} ${HASH}"
}