Refactor get_zorin()
This commit is contained in:
parent
71c7542dcb
commit
ecb0afbcce
4
quickget
4
quickget
@ -1115,8 +1115,8 @@ function get_zorin() {
|
|||||||
|
|
||||||
validate_release "releases_zorin"
|
validate_release "releases_zorin"
|
||||||
# their redirector returns an href so we need to get that and parse out the iso
|
# their redirector returns an href so we need to get that and parse out the iso
|
||||||
URL=$(curl -s "https://zrn.co/${RELEASE}" |cut -d\" -f2)
|
URL=$(curl -s "https://zrn.co/${RELEASE}" | cut -d'"' -f2)
|
||||||
ISO=$(echo "${URL}"| awk -F\/ ' {print $NF}')
|
ISO=$(echo "${URL}" | awk -F\/ ' {print $NF}')
|
||||||
web_get "${URL}" "${VM_PATH}"
|
web_get "${URL}" "${VM_PATH}"
|
||||||
make_vm_config "${ISO}"
|
make_vm_config "${ISO}"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user