mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Refactor get_solus() to add create_vm() compatibility
This commit is contained in:
parent
7ec0751591
commit
fa49bf2e0d
1 changed files with 4 additions and 15 deletions
19
quickget
19
quickget
|
@ -1109,22 +1109,11 @@ function get_slackware() {
|
|||
function get_solus() {
|
||||
local EDITION="${1:-}"
|
||||
local HASH=""
|
||||
local ISO=""
|
||||
local URL=""
|
||||
local ISO="Solus-${RELEASE}-${EDITION}.iso"
|
||||
local URL="https://mirrors.rit.edu/solus/images/${RELEASE}"
|
||||
|
||||
case ${EDITION} in
|
||||
mate|gnome)
|
||||
EDITION=${EDITION^^};;
|
||||
*)
|
||||
EDITION=${EDITION^};;
|
||||
esac
|
||||
|
||||
URL="https://mirrors.rit.edu/solus/images/${RELEASE}"
|
||||
ISO="Solus-${RELEASE}-${EDITION}.iso"
|
||||
HASH=$(wget -q -O- "${URL}.sha256sum" | cut -d' ' -f1)
|
||||
web_get "${URL}/${ISO}" "${VM_PATH}"
|
||||
check_hash "${ISO}" "${HASH}"
|
||||
make_vm_config "${ISO}"
|
||||
HASH=$(wget -q -O- "${URL}/${ISO}.sha256sum" | cut -d' ' -f1)
|
||||
echo "${URL}/${ISO} ${HASH}"
|
||||
}
|
||||
|
||||
function get_tails() {
|
||||
|
|
Loading…
Reference in a new issue