fix: + Add OS info to list_csv
This commit is contained in:
parent
2998c94d6a
commit
6cdd372a8d
12
quickget
12
quickget
|
@ -312,6 +312,7 @@ function csv_data() {
|
|||
local PNG
|
||||
local RELEASE
|
||||
local SVG
|
||||
local INFO
|
||||
local HAS_ZSYNC=0
|
||||
|
||||
# Check if zsync is available
|
||||
|
@ -320,9 +321,11 @@ function csv_data() {
|
|||
fi
|
||||
|
||||
for OS in $(os_support); do
|
||||
local INFO=""
|
||||
local EDITIONS=""
|
||||
DISPLAY_NAME="$(pretty_name "${OS}")"
|
||||
|
||||
INFO=$(os_info "$OS")
|
||||
IFS='|' read -r PRETTY_NAME BASED_ON CREDENTIALS HOMEPAGE INFO_TEXT <<< "$INFO"
|
||||
case ${OS} in
|
||||
*ubuntu-server*) FUNC="ubuntu-server";;
|
||||
*ubuntu*) FUNC="ubuntu";;
|
||||
|
@ -346,15 +349,15 @@ function csv_data() {
|
|||
# If the OS has an editions_() function, use it.
|
||||
if [[ ${EDITIONS} ]]; then
|
||||
for OPTION in ${EDITIONS}; do
|
||||
echo "${DISPLAY_NAME},${OS},${RELEASE},${OPTION},${DOWNLOADER},${PNG},${SVG}"
|
||||
echo "${DISPLAY_NAME},${OS},${RELEASE},${OPTION},${DOWNLOADER},${PNG},${SVG},${BASED_ON},${CREDENTIALS},${HOMEPAGE},${INFO_TEXT}"
|
||||
done
|
||||
elif [[ "${OS}" == "windows"* ]]; then
|
||||
"languages_${OS}"
|
||||
for LANG in "${LANGS[@]}"; do
|
||||
echo "${DISPLAY_NAME},${OS},${RELEASE},${LANG},${DOWNLOADER},${PNG},${SVG}"
|
||||
echo "${DISPLAY_NAME},${OS},${RELEASE},${LANG},${DOWNLOADER},${PNG},${SVG},${BASED_ON},${CREDENTIALS},${HOMEPAGE},${INFO_TEXT}"
|
||||
done
|
||||
else
|
||||
echo "${DISPLAY_NAME},${OS},${RELEASE},,${DOWNLOADER},${PNG},${SVG}"
|
||||
echo "${DISPLAY_NAME},${OS},${RELEASE},,${DOWNLOADER},${PNG},${SVG},${BASED_ON},${CREDENTIALS},${HOMEPAGE},${INFO_TEXT}"
|
||||
fi
|
||||
done &
|
||||
done
|
||||
|
@ -3429,6 +3432,7 @@ case "${1}" in
|
|||
;;
|
||||
#TODO: Argument without dashes should be DEPRECATED!
|
||||
'--list-csv'|'-lc'|'list'|'list_csv'|'lc')
|
||||
echo "Pretty Name,OS,Release,Option,Downloader,PNG,SVG,Based on,Credentials,Homepage,Info"
|
||||
list_csv
|
||||
;;
|
||||
#TODO: Argument without dashes should be DEPRECATED!
|
||||
|
|
Loading…
Reference in New Issue