X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Finfo-file-validate.sh;h=40d96b6daa87e364fb59c0c14a3ef01ca6d194fb;hb=a86c6e8d376c95aa00b179fce9d207e61c8f72d0;hp=8a4bc6b394f223aa6b9e0aa42697c63b8f9c0d43;hpb=254bbe5cc592a507ff9be80171786526ec9332e7;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"