Skip to content

Commit

Permalink
Use parallelized list_csv as backend for list_supported
Browse files Browse the repository at this point in the history
  • Loading branch information
lj3954 authored and flexiondotorg committed May 2, 2024
1 parent f1ebc0c commit e935f80
Showing 1 changed file with 3 additions and 26 deletions.
29 changes: 3 additions & 26 deletions quickget
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,8 @@ function csv_data() {
done
elif [[ "${OS}" == "windows"* ]]; then
"languages_${OS}"
for OPTION in "${LANGS[@]}"; do
echo "${DISPLAY_NAME},${OS},${RELEASE},${OPTION},${DOWNLOADER},${PNG},${SVG}"
for LANG in "${LANGS[@]}"; do
echo "${DISPLAY_NAME},${OS},${RELEASE},${LANG},${DOWNLOADER},${PNG},${SVG}"
done
else
echo "${DISPLAY_NAME},${OS},${RELEASE},,${DOWNLOADER},${PNG},${SVG}"
Expand Down Expand Up @@ -372,30 +372,7 @@ function create_config() {
}

function list_supported() {
# output OS RELEASE EDITION (usefull for straight testing...)
local FUNC=""
local OS=""
for OS in $(os_support); do
FUNC="${OS}"
if [[ "${OS}" == *ubuntu* && "${OS}" != "ubuntu-server" ]]; then
FUNC="ubuntu"
fi
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 EDITION in $(editions_"${OS}"); do
echo "${OS} ${RELEASE} ${EDITION}"
done
elif [[ "${OS}" == "windows"* ]]; then
"languages_${OS}"
for LANG in "${LANGS[@]}"; do
echo "${OS} ${RELEASE} ${LANG}"
done
else
echo "${OS} ${RELEASE}"
fi
done
done
list_csv | cut -d ',' -f2,3,4 | tr ',' ' '
exit 0
}

Expand Down

0 comments on commit e935f80

Please sign in to comment.