From e5468e47c524fdb3286533ddbde4b8bc0efd019d Mon Sep 17 00:00:00 2001 From: zen0bit Date: Wed, 1 May 2024 06:53:12 +0200 Subject: [PATCH] fix: daily-live not shown in checks --- quickget | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/quickget b/quickget index 35b3b7c..665be66 100755 --- a/quickget +++ b/quickget @@ -1298,9 +1298,14 @@ function zsync_get() { if [ "${OPERATION}" == "show" ]; then echo "${URL}" exit 0 - elif [ "${OPERATION}" == "test" ]; then - web_check "${URL}" - exit 0 + elif [ "${OPERATION}" == "check" ]; then + if ! web_check "${URL}"; then + check_result "${OS}" "${RELEASE}" "${EDITION}" "${URL}" "FAIL" + exit 0 + else + check_result "${OS}" "${RELEASE}" "${EDITION}" "${URL}" "PASS" + exit 0 + fi elif command -v zsync &>/dev/null; then if [ -n "${3}" ]; then OUT="${3}"