diff --git a/ci-templates/gitlab/model-validation.yml b/ci-templates/gitlab/model-validation.yml index 01aa51c6..3dece478 100644 --- a/ci-templates/gitlab/model-validation.yml +++ b/ci-templates/gitlab/model-validation.yml @@ -12,7 +12,7 @@ model-validation: - if [ ! -z $CI_COMMIT_BRANCH ]; then git reset --hard origin/$CI_COMMIT_BRANCH; fi - BUILD_DIR=$(pwd) - if [ ! -f ".project" ]; then echo "The model validator requires a '.project' file!" && exit 1; fi - - if [[ "$(dirname "$ENTRYPOINT")" != "." ]]; then echo 'The model validator requires a "*.aird" in the root level of the repository!' && exit 1; fi + - 'if [[ "$(dirname "${ENTRYPOINT}")" != "." ]]; then echo ''The model validator requires a "*.aird" in the root level of the repository!'' && exit 1; fi' - mkdir /tmp/project - cp -r . /tmp/project - cd /tmp