From 5520c18df0dc0d4e8608556ab84481ab115d3284 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Sun, 28 Apr 2024 13:32:28 +0100 Subject: [PATCH] feat: add show_test_result() to output iso checks consistently --- quickget | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/quickget b/quickget index 74754d8..81083c5 100755 --- a/quickget +++ b/quickget @@ -393,6 +393,22 @@ function list_supported() { exit 0 } +function show_test_result() { + local RESULT="${1}" + local OS="${2}" + local RELEASE="${3}" + local EDITION="${4:-}" + local URL="${5:-}" + 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 "${RESULT}: ${OS} ${URL}" +} + function list_url_all() { OS="${1}" os_supported