mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Refactor get_manjaro() to add create_vm() compatibility
This commit is contained in:
parent
9073c5f280
commit
e57307e54a
1 changed files with 5 additions and 12 deletions
17
quickget
17
quickget
|
@ -960,26 +960,19 @@ function get_macos() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_manjaro() {
|
function get_manjaro() {
|
||||||
local BRANCH=""
|
|
||||||
local HASH=""
|
local HASH=""
|
||||||
local ISO=""
|
local ISO=""
|
||||||
local KEY_ISO="Download_x64 ="
|
|
||||||
local KEY_HASH="Download_x64_Checksum ="
|
|
||||||
local MANIFESTURL=""
|
local MANIFESTURL=""
|
||||||
local URL=""
|
local URL=""
|
||||||
|
|
||||||
case ${RELEASE} in
|
case ${RELEASE} in
|
||||||
gnome|kde|xfce) BRANCH="official";;
|
gnome|kde|xfce) MANIFESTURL="https://gitlab.manjaro.org/webpage/manjaro-homepage/-/raw/master/site/content/downloads/official/${RELEASE}.md";;
|
||||||
budgie|cinnamon|deepin|i3|mate) BRANCH="community";;
|
budgie|cinnamon|deepin|i3|mate) MANIFESTURL="https://gitlab.manjaro.org/webpage/manjaro-homepage/-/raw/master/site/content/downloads/community/${RELEASE}.md";;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
MANIFESTURL="https://gitlab.manjaro.org/webpage/manjaro-homepage/-/raw/master/site/content/downloads/${BRANCH}/${RELEASE}.md"
|
URL="$(wget -qO- "${MANIFESTURL}" | grep "Download_x64 =" | cut -d'"' -f2)"
|
||||||
URL="$(wget -qO- "${MANIFESTURL}" | grep "${KEY_ISO}" | cut -d'"' -f2)"
|
HASH=$(wget -qO- "${MANIFESTURL}" | grep "Download_x64_Checksum =" | cut -d'"' -f2)
|
||||||
ISO="${URL##*/}"
|
echo "${URL} ${HASH}"
|
||||||
HASH=$(wget -qO- "${MANIFESTURL}" | grep "${KEY_HASH}" | cut -d'"' -f2)
|
|
||||||
web_get "${URL}" "${VM_PATH}"
|
|
||||||
check_hash "${ISO}" "${HASH}"
|
|
||||||
make_vm_config "${ISO}"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_mxlinux() {
|
function get_mxlinux() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue