From 2f731d6828f6990467950f496924fec229ad1d3e Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Tue, 18 Mar 2025 12:11:37 +0100 Subject: [PATCH] fix the monitoring --- show-status.sh | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/show-status.sh b/show-status.sh index dc94e535..74b39112 100755 --- a/show-status.sh +++ b/show-status.sh @@ -34,17 +34,17 @@ for part in "${parts[@]}"; do if $include; then result=$($BASEPATH/sync-status.sh "${part%.yml}") - if [ $? -ne 0 ]; then - if [[ "$result" == *"syncing"* && $? -eq 1 ]]; then - # Allow exit status 1 if result contains "syncing" - true - elif [[ "$result" == *"lagging"* && $? -eq 1 ]]; then - # Allow exit status 1 if result contains "syncing" - true - else - any_failure=true - fi - fi + + if [[ "$result" == *"syncing"* && $? -eq 1 ]]; then + # Allow exit status 1 if result contains "syncing" + true + elif [[ "$result" == *"lagging"* && $? -eq 1 ]]; then + # Allow exit status 1 if result contains "syncing" + true + elif [ $? -ne 0 ]; then + any_failure=true + fi + echo "${part%.yml}: $result" fi