|
|
|
@ -594,18 +594,17 @@ function web_get() { |
|
|
|
|
|
|
|
|
|
if command -v aria2c > /dev/null; then |
|
|
|
|
if ! aria2c -x16 --continue=true --summary-interval=0 --download-result=hide --console-log-level=error "${URL}" -o "${DIR}/${FILE}"; then |
|
|
|
|
echo #Necessary as aria2c in suppressed mode doesnot have new lines |
|
|
|
|
echo #Necessary as aria2c in suppressed mode does not have new lines |
|
|
|
|
echo "ERROR! Failed to download ${URL}. Try running 'quickget' again." |
|
|
|
|
exit 1 |
|
|
|
|
fi |
|
|
|
|
echo #Necessary as aria2c in suppressed mode doesnot have new lines |
|
|
|
|
echo #Necessary as aria2c in suppressed mode does not have new lines |
|
|
|
|
else |
|
|
|
|
if ! wget --quiet --continue --show-progress --progress=bar:force:noscroll "${URL}" -O "${DIR}/${FILE}"; then |
|
|
|
|
echo "ERROR! Failed to download ${URL}. Try running 'quickget' again." |
|
|
|
|
exit 1 |
|
|
|
|
fi |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function zsync_get() { |
|
|
|
@ -813,7 +812,6 @@ function get_alma() { |
|
|
|
|
ISOTYPE="${1}" |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# The mirror url returns 10 or so local mirrors with some kind or RR rotation/load balancing |
|
|
|
|
# We'll just grab the first |
|
|
|
|
|
|
|
|
@ -882,7 +880,6 @@ function get_arcolinux() { |
|
|
|
|
make_vm_config "${ISO}" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function get_cachyos() { |
|
|
|
|
local HASH="" |
|
|
|
|
local ISO="" |
|
|
|
@ -963,7 +960,6 @@ function get_fedora() { |
|
|
|
|
local VERSION_NUM="" |
|
|
|
|
|
|
|
|
|
validate_release "releases_fedora" |
|
|
|
|
|
|
|
|
|
FEDORA_VERSIONS=$(wget -q -O- "https://getfedora.org/releases.json" | jq '.[] | select((.variant=="Workstation" or .variant=="Spins") and .arch=="x86_64")') |
|
|
|
|
if [[ "${RELEASE}" == *"beta"* ]]; then |
|
|
|
|
VERSION_NUM=${RELEASE%"_beta"} |
|
|
|
@ -1007,6 +1003,7 @@ function get_kali() { |
|
|
|
|
local ISO="" |
|
|
|
|
local URL="" |
|
|
|
|
local SUBDIR="" |
|
|
|
|
|
|
|
|
|
validate_release "releases_kali" |
|
|
|
|
|
|
|
|
|
if [[ "${RELEASE}" == "latest" ]]; then |
|
|
|
@ -1150,8 +1147,8 @@ function get_nixos() { |
|
|
|
|
web_get "${URL}" "${VM_PATH}" |
|
|
|
|
check_hash "${ISO}" "${HASH}" |
|
|
|
|
make_vm_config "${ISO}" |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function get_openbsd() { |
|
|
|
|
local HASH="" |
|
|
|
|
local ISO="" |
|
|
|
@ -1391,7 +1388,6 @@ function get_popos() { |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
validate_release "releases_popos" |
|
|
|
|
|
|
|
|
|
URL=$(wget -q -O- "https://api.pop-os.org/builds/${RELEASE}/${DRIVER}" | jq ".url") |
|
|
|
|
URL="${URL//\"/}" |
|
|
|
|
ISO=$(echo "${URL}" | sed -e "s/.*\/\([^\/]*\)$/\1/") |
|
|
|
@ -1434,7 +1430,6 @@ function get_regolith() { |
|
|
|
|
|
|
|
|
|
function get_tails() { |
|
|
|
|
validate_release "releases_tails" |
|
|
|
|
|
|
|
|
|
RELEASE_JSON_URL="https://tails.boum.org/install/v2/Tails/amd64/${RELEASE}/latest.json" |
|
|
|
|
RELEASE_JSON="$(wget -q -O- "$RELEASE_JSON_URL")" |
|
|
|
|
URL=$(echo "$RELEASE_JSON" | jq -r '.installations[0]."installation-paths"[]|select(.type=="iso")|."target-files"[0].url') |
|
|
|
@ -2008,7 +2003,6 @@ fi |
|
|
|
|
if [ -n "${2}" ]; then |
|
|
|
|
RELEASE="${2,,}" |
|
|
|
|
VM_PATH="${OS}-${RELEASE}" |
|
|
|
|
|
|
|
|
|
if [ "${OS}" == "alma" ]; then |
|
|
|
|
if [ -n "${3}" ]; then |
|
|
|
|
ISOTYPE="${3,,}" |
|
|
|
|