diff --git a/show-status.sh b/show-status.sh index f883f557..a9795388 100755 --- a/show-status.sh +++ b/show-status.sh @@ -35,17 +35,19 @@ for part in "${parts[@]}"; do if $include; then result=$($BASEPATH/sync-status.sh "${part%.yml}") - if [[ "$result" == *"syncing"* && $? -eq 1 ]]; then - # Allow exit status 1 if result contains "syncing" - #echo "hit syncing" - elif [[ "$result" == *"lagging"* && $? -eq 1 ]]; then - # Allow exit status 1 if result contains "syncing" - #echo "hit lagging" - elif [ $? -ne 0 ]; then - echo "hit failure $?" - any_failure=true + if [ $? -ne 0 ]; then + if [[ "$result" == *"syncing"* ]]; then + # Allow exit status 1 if result contains "syncing" + true + elif [[ "$result" == *"lagging"* ]]; then + # Allow exit status 1 if result contains "syncing" + true + else + any_failure=true + fi fi + echo "${part%.yml}: $result" fi