From bb0d8f231d802dc6e4d3b09426e74435c9e23c37 Mon Sep 17 00:00:00 2001 From: James Groom Date: Thu, 16 Nov 2023 15:48:00 +1000 Subject: [PATCH] Fix `find` invocation in GitLab CI config --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0d71da515b..4065b42a27 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -49,7 +49,7 @@ build_ext_projs: - if: '$CI_PIPELINE_SOURCE == "schedule"' when: always script: - - for d in $CI_PROJECT_DIR/ExternalProjects/*; do if [ -e "$d/build_release.sh" ] && (find "$d" -name '*.csproj' -maxdepth 1 -quit); then cd "$d" && ./build_release.sh; fi; done + - for d in $CI_PROJECT_DIR/ExternalProjects/*; do [ -e "$d/build_release.sh" -a "$(find "$d" -maxdepth 1 -name '*.csproj' -print -quit)" ] && cd "$d" && ./build_release.sh; fi; done stage: test build_ext_tools: