mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Refactor Pop!_OS support to be consistent with other OSs with editions
This commit is contained in:
parent
830c38818a
commit
bbcc470751
1 changed files with 3 additions and 4 deletions
7
quickget
7
quickget
|
@ -1289,20 +1289,19 @@ function get_macos() {
|
|||
}
|
||||
|
||||
function get_popos() {
|
||||
local DRIVER="intel"
|
||||
local EDITION=""
|
||||
local HASH=""
|
||||
local ISO=""
|
||||
local URL=""
|
||||
|
||||
if [ -n "${1}" ]; then
|
||||
DRIVER="${1}"
|
||||
EDITION="${1}"
|
||||
fi
|
||||
|
||||
URL=$(wget -q -O- "https://api.pop-os.org/builds/${RELEASE}/${EDITION}" | jq ".url")
|
||||
URL=$(wget -q -O- "https://api.pop-os.org/builds/${RELEASE}/${DRIVER}" | jq ".url")
|
||||
URL="${URL//\"/}"
|
||||
ISO=$(echo "${URL}" | sed -e "s/.*\/\([^\/]*\)$/\1/")
|
||||
HASH=$(wget -q -O- "https://api.pop-os.org/builds/${RELEASE}/${DRIVER}" | jq ".sha_sum")
|
||||
HASH=$(wget -q -O- "https://api.pop-os.org/builds/${RELEASE}/${EDITION}" | jq ".sha_sum")
|
||||
HASH="${HASH//\"/}"
|
||||
web_get "${URL}" "${VM_PATH}"
|
||||
check_hash "${ISO}" "${HASH}"
|
||||
|
|
Loading…
Reference in a new issue