mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Refactor get_slackware()
This commit is contained in:
parent
be48d663bd
commit
a4b7b33aaf
1 changed files with 12 additions and 13 deletions
25
quickget
25
quickget
|
@ -1155,24 +1155,23 @@ function get_slackware() {
|
||||||
local ISO=""
|
local ISO=""
|
||||||
local URL=""
|
local URL=""
|
||||||
|
|
||||||
local arch="64"
|
case ${RELEASE} in
|
||||||
|
current)
|
||||||
if [[ "${RELEASE}" == "current" ]]; then
|
URL="https://slackware.nl/slackware/slackware64-current-iso"
|
||||||
URL="https://slackware.nl/slackware/slackware${arch}-current-iso/slackware${arch}-current-install-dvd.iso"
|
ISO="slackware64-current-install-dvd.iso"
|
||||||
else
|
;;
|
||||||
URL="https://mirrors.slackware.com/slackware/slackware-iso/slackware${arch}-${RELEASE}-iso/slackware${arch}-${RELEASE}-install-dvd.iso"
|
*)
|
||||||
fi
|
URL="https://mirrors.slackware.com/slackware/slackware-iso/slackware64-${RELEASE}-iso"
|
||||||
|
ISO="slackware64-${RELEASE}-install-dvd.iso"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
ISO="slackware${arch}-${RELEASE}-install-dvd.iso"
|
HASH=$(wget -q -O- "${URL}/${ISO}.md5" | cut -d' ' -f1)
|
||||||
HASH=$(wget -q -O- "${URL}.md5" | cut -d' ' -f1)
|
web_get "${URL}/${ISO}" "${VM_PATH}"
|
||||||
|
|
||||||
|
|
||||||
web_get "${URL}" "${VM_PATH}"
|
|
||||||
check_hash "${ISO}" "${HASH}"
|
check_hash "${ISO}" "${HASH}"
|
||||||
make_vm_config "${ISO}"
|
make_vm_config "${ISO}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function get_solus() {
|
function get_solus() {
|
||||||
local RELNUM=""
|
local RELNUM=""
|
||||||
local RELTYPE=""
|
local RELTYPE=""
|
||||||
|
|
Loading…
Reference in a new issue