refactor: make test output in web_get() consistent with other tests

This commit is contained in:
Martin Wimpress 2024-04-28 02:53:17 +01:00 committed by Martin Wimpress
parent 03ac799287
commit 43df80636d
1 changed files with 2 additions and 2 deletions

View File

@ -1270,8 +1270,8 @@ function web_get() {
echo "${URL}" echo "${URL}"
exit 0 exit 0
elif [ "${just}" == 'test' ]; then elif [ "${just}" == 'test' ]; then
echo -n "Testing if $(echo "${URL}" | rev | cut -d'/' -f1 | rev) is available... " GOOD=$(web_check "${URL}" && echo 'PASS' || echo 'FAIL')
web_check "${URL}" && echo 'PASS' || echo 'FAIL' echo -e "${GOOD}:\t${OS}\t${RELEASE}\t${EDITION}\t${URL}"
exit 0 exit 0
elif [ "${just}" == 'download' ]; then elif [ "${just}" == 'download' ]; then
DIR="$(pwd)" DIR="$(pwd)"