#!/bin/bash

set -e
set -o pipefail

[ "${SKIP_CHECK:-no}" = "yes" ] || for c in tools/repo/check.d/*; do
    echo "running $c..."
    $c | while read line; do
        echo "$c: $line"
    done
done

echo "repo is OK"
exit 0