Refactor get_elementary()
This commit is contained in:
parent
dc5cc54af5
commit
98fe5899d0
6
quickget
6
quickget
@ -866,13 +866,13 @@ function get_debian() {
|
|||||||
|
|
||||||
function get_elementary() {
|
function get_elementary() {
|
||||||
local ISO=""
|
local ISO=""
|
||||||
|
local ISOTAG="20211218-rc"
|
||||||
local URL=""
|
local URL=""
|
||||||
local B66tim=""
|
local B66tim=""
|
||||||
local isotag="20211218-rc"
|
|
||||||
|
|
||||||
validate_release "releases_elementary"
|
validate_release "releases_elementary"
|
||||||
B66tim=$(date +%s | base64 )
|
B66tim=$(date +%s | base64)
|
||||||
ISO="elementaryos-${RELEASE}-stable.${isotag}.iso"
|
ISO="elementaryos-${RELEASE}-stable.${ISOTAG}.iso"
|
||||||
# TODO: derive region from geoIP
|
# TODO: derive region from geoIP
|
||||||
URL="https://ams3.dl.elementary.io/download/${B66tim}=/${ISO}"
|
URL="https://ams3.dl.elementary.io/download/${B66tim}=/${ISO}"
|
||||||
web_get "${URL}" "${VM_PATH}"
|
web_get "${URL}" "${VM_PATH}"
|
||||||
|
Loading…
Reference in New Issue
Block a user