speedup with less errors

This commit is contained in:
Sebastian
2025-03-21 06:32:25 +01:00
parent d9c65cb01a
commit 003bcc7e7b
2 changed files with 26 additions and 9 deletions

View File

@@ -17,21 +17,23 @@ check_sync_status() {
local part=$1
result=$("$BASEPATH/sync-status.sh" "${part%.yml}")
code=0
if [ $? -ne 0 ]; then
if [[ "$result" == *"syncing"* ]]; then
# Allow exit status 1 if result contains "syncing"
return 0
code=0
elif [[ "$result" == *"lagging"* ]]; then
# Allow exit status 1 if result contains "lagging"
return 0
code=0
else
any_failure=true
return 1
code=1
fi
fi
echo "${part%.yml}: $result"
return 0
return "$code"
}
@@ -71,4 +73,4 @@ done
# If any invocation failed, return a failure exit code
if $any_failure; then
exit 1
fii
fi