mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Refactor get_zorin()
This commit is contained in:
parent
93a5a49d52
commit
6ddf92c772
1 changed files with 4 additions and 3 deletions
7
quickget
7
quickget
|
@ -1107,9 +1107,10 @@ function get_zorin() {
|
||||||
local URL=""
|
local URL=""
|
||||||
|
|
||||||
validate_release "releases_zorin"
|
validate_release "releases_zorin"
|
||||||
# their redirector returns an href so we need to get that and parse out the iso
|
# Parse out the iso URL from the redirector
|
||||||
URL=$(curl -s "https://zrn.co/${RELEASE}" | cut -d'"' -f2)
|
URL=$(wget -q -S -O- --max-redirect=0 "https://zrn.co/${RELEASE}" 2>&1 | grep Location | cut -d' ' -f4)
|
||||||
ISO=$(echo "${URL}" | awk -F\/ ' {print $NF}')
|
#ISO=$(echo "${URL}" | awk -F\/ ' {print $NF}')
|
||||||
|
ISO="${URL##*/}"
|
||||||
web_get "${URL}" "${VM_PATH}"
|
web_get "${URL}" "${VM_PATH}"
|
||||||
make_vm_config "${ISO}"
|
make_vm_config "${ISO}"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue