mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Refactor get_zorin() to add create_vm() compatibility
This commit is contained in:
parent
23b8e42374
commit
ddae16280f
1 changed files with 2 additions and 3 deletions
5
quickget
5
quickget
|
@ -1184,14 +1184,13 @@ function get_void() {
|
|||
|
||||
function get_zorin() {
|
||||
local EDITION="${1:-}"
|
||||
local HASH=""
|
||||
local ISO=""
|
||||
local URL=""
|
||||
|
||||
# Parse out the iso URL from the redirector
|
||||
URL=$(wget -q -S -O- --max-redirect=0 "https://zrn.co/${RELEASE}${EDITION}" 2>&1 | grep Location | cut -d' ' -f4)
|
||||
ISO="${URL##*/}"
|
||||
web_get "${URL}" "${VM_PATH}"
|
||||
make_vm_config "${ISO}"
|
||||
echo "${URL} ${HASH}"
|
||||
}
|
||||
|
||||
function unattended_windows() {
|
||||
|
|
Loading…
Reference in a new issue