fix the monitoring

This commit is contained in:
Sebastian
2025-03-18 12:11:37 +01:00
parent 5449adc8f8
commit 2f731d6828

View File

@@ -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
elif [ $? -ne 0 ]; then
any_failure=true
fi
fi
echo "${part%.yml}: $result"
fi