From 1d916a96f5099a6252574c9568ef8adc631a5ac2 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Sun, 28 Apr 2024 14:43:32 +0100 Subject: [PATCH] feat: if --url-all is requested with no OS, list URLs for all supported OS --- quickget | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/quickget b/quickget index 6aab28c..3356ac9 100755 --- a/quickget +++ b/quickget @@ -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"