Refactor get_popos() to add create_vm() compatibility

This commit is contained in:
Martin Wimpress 2022-02-23 10:56:59 +00:00
parent c553e404c9
commit 1310daeeaa
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3
1 changed files with 1 additions and 5 deletions

View File

@ -1065,13 +1065,9 @@ function get_popos() {
local HASH=""
local ISO=""
local URL=""
URL=$(wget -q -O- "https://api.pop-os.org/builds/${RELEASE}/${EDITION}" | jq -r .url)
ISO="${URL##*/}"
HASH=$(wget -q -O- "https://api.pop-os.org/builds/${RELEASE}/${EDITION}" | jq -r .sha_sum)
web_get "${URL}" "${VM_PATH}"
check_hash "${ISO}" "${HASH}"
make_vm_config "${ISO}"
echo "${URL} ${HASH}"
}
function get_regolith() {