White space clean up

This commit is contained in:
Martin Wimpress 2022-02-21 01:40:23 +00:00
parent d67f864957
commit fe5dfce322
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3
1 changed files with 19 additions and 25 deletions

View File

@ -605,7 +605,6 @@ function web_get() {
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,,}"