mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Refactor get_archlinux() to add create_vm() compatibility
This commit is contained in:
parent
5ba5847d21
commit
b67c272d19
1 changed files with 4 additions and 10 deletions
14
quickget
14
quickget
|
@ -721,16 +721,10 @@ function get_android() {
|
||||||
function get_archlinux() {
|
function get_archlinux() {
|
||||||
local HASH=""
|
local HASH=""
|
||||||
local ISO=""
|
local ISO=""
|
||||||
local URL=""
|
local URL="https://mirror.rackspace.com/archlinux"
|
||||||
local VERSION=""
|
ISO=$(wget -q -O- "https://archlinux.org/releng/releases/json/" | jq -r '.releases[0].iso_url')
|
||||||
|
HASH=$(wget -q -O- "https://archlinux.org/releng/releases/json/" | jq -r '.releases[0].sha1_sum')
|
||||||
VERSION=$(wget -q -O- 'https://archlinux.org/releng/releases/json/' | jq '.latest_version' | cut -d "\"" -f 2)
|
echo "${URL}/${ISO} ${HASH}"
|
||||||
URL="https://mirror.rackspace.com/archlinux/iso/${VERSION}"
|
|
||||||
ISO="archlinux-${VERSION}-x86_64.iso"
|
|
||||||
HASH=$(wget -q -O- 'https://archlinux.org/releng/releases/json/' | jq '.releases[0].sha1_sum' | cut -d "\"" -f 2)
|
|
||||||
web_get "${URL}/${ISO}" "${VM_PATH}"
|
|
||||||
check_hash "${ISO}" "${HASH}"
|
|
||||||
make_vm_config "${ISO}"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_arcolinux() {
|
function get_arcolinux() {
|
||||||
|
|
Loading…
Reference in a new issue