fix: daily-live not shown in checks

This commit is contained in:
zen0bit 2024-05-01 06:53:12 +02:00
parent c2624814d7
commit 8c7c2987a7

View File

@ -1286,20 +1286,19 @@ function web_check() {
}
function zsync_get() {
local CHECK=""
local DIR="${2}"
local FILE="${1##*/}"
local OUT=""
local URL="${1}"
# Test mode for ISO
if [ "${OPERATION}" == "show" ]; then
echo "${URL}"
test_result "${OS}" "${RELEASE}" "${EDITION}" "${URL}"
exit 0
elif [ "${OPERATION}" == "check" ]; then
elif [ "${OPERATION}" == "test" ]; then
if ! web_check "${URL}"; then
check_result "${OS}" "${RELEASE}" "${EDITION}" "${URL}" "FAIL"
exit 0
else
check_result "${OS}" "${RELEASE}" "${EDITION}" "${URL}" "PASS"
CHECK=$(web_check "${URL}" && echo 'PASS' || echo 'FAIL')
test_result "${OS}" "${RELEASE}" "${EDITION}" "${URL}" "${CHECK}"
exit 0
fi
elif command -v zsync &>/dev/null; then