diff --git a/quickget b/quickget index d291146..b3a8430 100755 --- a/quickget +++ b/quickget @@ -152,6 +152,7 @@ function list_csv() { function os_support() { echo android \ archlinux \ + debian \ elementary \ freebsd \ fedora \ @@ -199,6 +200,18 @@ function releases_archlinux() { echo latest } +# later refactor these DE variants like languages and avoid the arch ? +function releases_debian() { + echo 11.1.0-amd64-cinnamon \ + 11.1.0-amd64-gnome \ + 11.1.0-amd64-kde \ + 11.1.0-amd64-lxde \ + 11.1.0-amd64-lxqt \ + 11.1.0-amd64-mate \ + 11.1.0-amd64-standard \ + 11.1.0-amd64-xfce +} + function releases_elementary() { echo 6.0 } @@ -677,6 +690,9 @@ function make_vm_config() { elif [ "${OS}" == "archlinux" ]; then GUEST="linux" IMAGE_TYPE="iso" + elif [ "${OS}" == "debian" ]; then + GUEST="linux" + IMAGE_TYPE="iso" elif [ "${OS}" == "elementary" ]; then GUEST="linux" IMAGE_TYPE="iso" @@ -829,6 +845,24 @@ function get_archlinux() { make_vm_config "${ISO}" } + +function get_debian() { + local HASH="" + local ISO="" + local URL="" + local HASHLINE="" + + validate_release "releases_debian" + URL="https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid" + HASHLINE=$(wget -q -O- ${URL}/SHA512SUMS |grep ${RELEASE}.iso) + ISO="$(echo ${HASHLINE} | awk '{print $NF}' )" + HASH=$(echo ${HASHLINE} | cut -d\ -f1) + + web_get "${URL}/${ISO}" "${VM_PATH}" + check_hash "${ISO}" "${HASH}" + make_vm_config "${ISO}" +} + function get_elementary() { local ISO="" local URL="" @@ -1387,6 +1421,8 @@ if [ -n "${2}" ]; then get_android elif [ "${OS}" == "archlinux" ]; then get_archlinux + elif [ "${OS}" == "debian" ]; then + get_debian elif [ "${OS}" == "elementary" ]; then get_elementary elif [ "${OS}" == "macos" ]; then @@ -1476,6 +1512,8 @@ else releases_android elif [ "${OS}" == "archlinux" ]; then releases_archlinux + elif [ "${OS}" == "debian" ]; then + releases_debian elif [ "${OS}" == "elementary" ]; then releases_elementary elif [ "${OS}" == "freebsd" ]; then