fix: daily-live not shown in checks

This commit is contained in:
zen0bit 2024-05-01 06:53:12 +02:00 committed by Martin Wimpress
parent e4c612118e
commit e5468e47c5
1 changed files with 8 additions and 3 deletions

View File

@ -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}"