Refactor get_elementary()

This commit is contained in:
Martin Wimpress 2022-02-21 01:55:01 +00:00
parent dc5cc54af5
commit 98fe5899d0
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3
1 changed files with 3 additions and 3 deletions

View File

@ -866,13 +866,13 @@ function get_debian() {
function get_elementary() {
local ISO=""
local ISOTAG="20211218-rc"
local URL=""
local B66tim=""
local isotag="20211218-rc"
validate_release "releases_elementary"
B66tim=$(date +%s | base64 )
ISO="elementaryos-${RELEASE}-stable.${isotag}.iso"
B66tim=$(date +%s | base64)
ISO="elementaryos-${RELEASE}-stable.${ISOTAG}.iso"
# TODO: derive region from geoIP
URL="https://ams3.dl.elementary.io/download/${B66tim}=/${ISO}"
web_get "${URL}" "${VM_PATH}"