X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Finfo-file-validate.sh;h=40d96b6daa87e364fb59c0c14a3ef01ca6d194fb;hb=refs%2Fchanges%2F50%2F72650%2F2;hp=8a4bc6b394f223aa6b9e0aa42697c63b8f9c0d43;hpb=04f1770f4aed60b07bba1db7c87920fa03af536c;p=releng%2Fglobal-jjb.git diff --git a/shell/info-file-validate.sh b/shell/info-file-validate.sh index 8a4bc6b3..40d96b6d 100755 --- a/shell/info-file-validate.sh +++ b/shell/info-file-validate.sh @@ -32,12 +32,12 @@ python yaml-verify-schema.py \ REPO_LIST="$(yq -r '.repositories[]' INFO.yaml)" while IFS= read -r project; do - if [[ "$project" == "$PROJECT" ]]; then - echo "$project is valid" - else - echo "ERROR: $project is invalid" - echo "INFO.yaml file may only list one repository" - echo "Repository must match $PROJECT" - exit 1 - fi + if [[ "$project" == "$PROJECT" ]]; then + echo "$project is valid" + else + echo "ERROR: $project is invalid" + echo "INFO.yaml file may only list one repository" + echo "Repository must match $PROJECT" + exit 1 + fi done <<< "$REPO_LIST"