Skip to content

Commit

Permalink
testing isos
Browse files Browse the repository at this point in the history
Signed-off-by: zenobit <[email protected]>
  • Loading branch information
zen0bit committed Feb 16, 2024
1 parent f948375 commit 35150d7
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions quickget
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,42 @@ list_supported() {
exit 0
}

# output OS RELEASE EDITION (usefull for straight testing...)
list_isos2() {
local show_iso_url="1"
local DIR="/dev/null"
local FUNC
local OPTION
local OS

echo "OS|Release|Edition|URL"
for OS in $(os_support); do
case ${OS} in
*ubuntu-server*) FUNC="ubuntu-server";;
*ubuntu*) FUNC="ubuntu";;
*) FUNC="${OS}";;
esac
for RELEASE in $("releases_${FUNC}" | sed -Ee 's/eol-\S+//g' ); do # hide eol releases
# If the OS has an editions_() function, use it.
if [[ $(type -t "editions_${OS}") == function ]]; then
for OPTION in $(editions_"${OS}"); do
quickget ${OS} ${RELEASE} ${OPTION}
done
elif [[ "${OS}" == "windows"* ]]; then
"languages_${OS}"
for OPTION in "${LANGS[@]}"; do
get_"${OS}" && web_get
done
else
get_"${OS}" && web_get
fi
done
done
exit 0
}

list_isos() {
local show_iso_url="1"
local URL
local FUNC
local OPTION
Expand Down

0 comments on commit 35150d7

Please sign in to comment.