list_check_all function instead of test_isos, updated

This commit is contained in:
zen0bit 2024-04-23 09:39:36 +02:00 committed by Martin Wimpress
parent b884a6443d
commit 358b0ff514
1 changed files with 3 additions and 2 deletions

View File

@ -429,7 +429,7 @@ function list_isos() {
exit 0 exit 0
} }
function test_isos() { function list_check_all() {
local DIR="/dev/null" local DIR="/dev/null"
local FUNC local FUNC
local OPTION local OPTION
@ -448,6 +448,7 @@ function test_isos() {
else else
FUNC="${OS}" FUNC="${OS}"
fi fi
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
@ -3545,7 +3546,7 @@ case "${1}" in
'--check-all'|'-ca') '--check-all'|'-ca')
just="test" just="test"
shift shift
time test_isos "${1}" list_check_all "${1}"
;; ;;
#TODO: Argument without dashes should be DEPRECATED! #TODO: Argument without dashes should be DEPRECATED!
'--list-csv'|'-lc'|'list'|'list_csv'|'lc') '--list-csv'|'-lc'|'list'|'list_csv'|'lc')