feat: if --url-all is requested with no OS, list URLs for all supported OS

This commit is contained in:
Martin Wimpress 2024-04-28 14:43:32 +01:00
parent ed855c05a7
commit 94e0ed4ccf
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3

View File

@ -3451,7 +3451,14 @@ case "${1}" in
'--url-all'|'-ua')
just="show"
shift
list_url_all "${1}"
# if no OS is specified, list all URLs for all supported OSes
if [ -z "${1}" ]; then
for OS in $(os_support); do
(list_url_all "${OS}")
done
else
list_url_all "${1}"
fi
;;
'--check'|'-c')
just="test"