list_url_all function instead of list_isos, updated

This commit is contained in:
zen0bit 2024-04-23 09:43:46 +02:00 committed by Martin Wimpress
parent 358b0ff514
commit 2ddae45d67
1 changed files with 28 additions and 30 deletions

View File

@ -383,7 +383,7 @@ function list_supported() {
exit 0 exit 0
} }
function list_isos() { function list_url_all() {
local DIR="/dev/null" local DIR="/dev/null"
local URL local URL
local FUNC local FUNC
@ -396,7 +396,6 @@ function list_isos() {
else else
FUNC="${OS}" FUNC="${OS}"
fi fi
for OS in ${FUNC}; do
for RELEASE in $("releases_${FUNC}" | sed -Ee 's/eol-\S+//g' ); do # hide eol releases for RELEASE in $("releases_${FUNC}" | sed -Ee 's/eol-\S+//g' ); do # hide eol releases
if [[ $(type -t "editions_${OS}") == function ]]; then if [[ $(type -t "editions_${OS}") == function ]]; then
for OPTION in $(editions_"${OS}"); do for OPTION in $(editions_"${OS}"); do
@ -425,7 +424,6 @@ function list_isos() {
get_"${OS}" "${RELEASE}" | cut_1 || echo "ERROR! - ${OS} ${RELEASE}" get_"${OS}" "${RELEASE}" | cut_1 || echo "ERROR! - ${OS} ${RELEASE}"
fi fi
done done
done
exit 0 exit 0
} }
@ -3537,7 +3535,7 @@ case "${1}" in
'--url-all'|'-ua') '--url-all'|'-ua')
just="show" just="show"
shift shift
time list_isos "${1}" list_url_all "${1}"
;; ;;
'--check'|'-c') '--check'|'-c')
just="test" just="test"