From 91b844198d11bdedef6ac9f5f2565af53d3cfcd6 Mon Sep 17 00:00:00 2001 From: laurentheirendt <laurent.heirendt@uni.lu> Date: Fri, 2 Jul 2021 08:19:57 +0200 Subject: [PATCH] fix syntax error --- .gitlab-ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ae7018eda..44c192eda 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -72,10 +72,10 @@ format: - docker login -u $CI_USER_NAME -p $GITLAB_ACCESS_TOKEN $CI_REGISTRY script: #- docker run -v $(pwd):/project $CI_REGISTRY/r3/docker/julia-custom --project=@. -e 'using JuliaFormatter; format(".", verbose=true);' - - if [[ (git status -s | wc -l) -gt 0 ]] then - GITHUB_COMMENT="There are files that need formatting." + - if [[ $(git status -s | wc -l) -gt 0 ]]; then + GITHUB_COMMENT="There are files that need formatting."; else - GITHUB_COMMENT="All files are formatted properly :white_check_mark:" + GITHUB_COMMENT="All files are formatted properly :white_check_mark:"; fi - docker run -i --rm \ -e $GITHUB_ACCESS_TOKEN \ -- GitLab