feat: add show_url_results() to consistently present URL listings
This commit is contained in:
parent
11dfed7288
commit
491d071fde
15
quickget
15
quickget
|
@ -409,6 +409,21 @@ function show_test_result() {
|
||||||
echo -e "${RESULT}: ${OS} ${URL}"
|
echo -e "${RESULT}: ${OS} ${URL}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function show_url_result() {
|
||||||
|
local OS="${1}"
|
||||||
|
local RELEASE="${2}"
|
||||||
|
local EDITION="${3:-}"
|
||||||
|
local URL="${4:-}"
|
||||||
|
if [ -n "${EDITION}" ]; then
|
||||||
|
OS="${OS}-${RELEASE}-${EDITION}"
|
||||||
|
else
|
||||||
|
OS="${OS}-${RELEASE}"
|
||||||
|
fi
|
||||||
|
# Pad the OS string to 32 characters
|
||||||
|
OS=$(printf "%-35s" "${OS}:")
|
||||||
|
echo -e "${OS} ${URL}"
|
||||||
|
}
|
||||||
|
|
||||||
function list_url_all() {
|
function list_url_all() {
|
||||||
OS="${1}"
|
OS="${1}"
|
||||||
os_supported
|
os_supported
|
||||||
|
|
Loading…
Reference in New Issue