mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Refactor elementary OS support
This commit is contained in:
parent
68213b89e7
commit
3870fe68cf
1 changed files with 11 additions and 9 deletions
20
quickget
20
quickget
|
@ -66,7 +66,7 @@ function os_support() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function releases_elementary() {
|
function releases_elementary() {
|
||||||
echo 6_0
|
echo 6.0
|
||||||
}
|
}
|
||||||
|
|
||||||
function releases_freebsd(){
|
function releases_freebsd(){
|
||||||
|
@ -467,14 +467,16 @@ function start_vm_info() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_elementary() {
|
function get_elementary() {
|
||||||
case ${RELEASE} in
|
local ISO=""
|
||||||
6_0) VERSION=${RELEASE//_/.};;
|
local RELEASES=""
|
||||||
*)
|
local URL=""
|
||||||
echo "ERROR! elementary OS ${RELEASE} is not a supported release."
|
|
||||||
releases_elementary
|
RELEASES=$(releases_elementary)
|
||||||
exit 1
|
if [[ "${RELEASES}" != *"${RELEASE}"* ]]; then
|
||||||
;;
|
echo "ERROR! elementary OS ${RELEASE} is not a supported release."
|
||||||
esac
|
echo "${RELEASES}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
ISO="elementaryos-${RELEASE}-stable.20211005.iso"
|
ISO="elementaryos-${RELEASE}-stable.20211005.iso"
|
||||||
URL="https://ams3.dl.elementary.io/download/MTYzNDU5MDA5NA==/${ISO}"
|
URL="https://ams3.dl.elementary.io/download/MTYzNDU5MDA5NA==/${ISO}"
|
||||||
|
|
Loading…
Reference in a new issue