mirror of
https://github.com/quickemu-project/quickemu.git
synced 2024-09-22 00:00:09 +02:00
feat: add show_url_results() to consistently present URL listings
This commit is contained in:
parent
ecaab037ef
commit
b5caf14aa5
15
quickget
15
quickget
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user