feat: add show_url_results() to consistently present URL listings

This commit is contained in:
Martin Wimpress 2024-04-28 14:30:29 +01:00
parent ecaab037ef
commit b5caf14aa5
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3
1 changed files with 15 additions and 0 deletions

View File

@ -409,6 +409,21 @@ function show_test_result() {
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() {
OS="${1}"
os_supported