From 43df80636d896c7b3b981f75da1064281e4a115b Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Sun, 28 Apr 2024 02:53:17 +0100 Subject: [PATCH] refactor: make test output in web_get() consistent with other tests --- quickget | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quickget b/quickget index 084ca24..745d189 100755 --- a/quickget +++ b/quickget @@ -1270,8 +1270,8 @@ function web_get() { echo "${URL}" exit 0 elif [ "${just}" == 'test' ]; then - echo -n "Testing if $(echo "${URL}" | rev | cut -d'/' -f1 | rev) is available... " - web_check "${URL}" && echo 'PASS' || echo 'FAIL' + GOOD=$(web_check "${URL}" && echo 'PASS' || echo 'FAIL') + echo -e "${GOOD}:\t${OS}\t${RELEASE}\t${EDITION}\t${URL}" exit 0 elif [ "${just}" == 'download' ]; then DIR="$(pwd)"