mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Refactor get_regolith() to add create_vm() compatibility
This commit is contained in:
parent
1310daeeaa
commit
687da83b00
1 changed files with 4 additions and 12 deletions
16
quickget
16
quickget
|
@ -1073,23 +1073,15 @@ function get_popos() {
|
||||||
function get_regolith() {
|
function get_regolith() {
|
||||||
local EDITION="${1:-}"
|
local EDITION="${1:-}"
|
||||||
local HASH=""
|
local HASH=""
|
||||||
local ISO=""
|
local ISO="Regolith_${EDITION}_${RELEASE}.iso"
|
||||||
local SUBDIR=""
|
|
||||||
local URL=""
|
local URL=""
|
||||||
|
|
||||||
case ${EDITION} in
|
case ${EDITION} in
|
||||||
1.6.0) SUBDIR="release-release-${RELEASE}-${RELEASE}_standard-${EDITION}";;
|
1.6.0) URL="https://github.com/regolith-linux/regolith-ubuntu-iso-builder/releases/download/release-release-${RELEASE}-${RELEASE}_standard-${EDITION}";;
|
||||||
2.0.0) SUBDIR="regolith-linux-2.0-${RELEASE}-latest";;
|
2.0.0) URL="https://github.com/regolith-linux/regolith-ubuntu-iso-builder/releases/download/regolith-linux-2.0-${RELEASE}-latest";;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
URL="https://github.com/regolith-linux/regolith-ubuntu-iso-builder/releases/download/${SUBDIR}"
|
|
||||||
ISO="Regolith_${EDITION}_${RELEASE}.iso"
|
|
||||||
HASH=$(wget -q -O- "${URL}/SHA256SUMS" | cut -d' ' -f1)
|
HASH=$(wget -q -O- "${URL}/SHA256SUMS" | cut -d' ' -f1)
|
||||||
web_get "${URL}/${ISO}" "${VM_PATH}"
|
echo "${URL}/${ISO} ${HASH}"
|
||||||
if [ -n "${HASH}" ]; then
|
|
||||||
check_hash "${ISO}" "${HASH}"
|
|
||||||
fi
|
|
||||||
make_vm_config "${ISO}"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_rockylinux() {
|
function get_rockylinux() {
|
||||||
|
|
Loading…
Reference in a new issue