From 9b6a7a7ecd0374f78f550595e625d69c37899693 Mon Sep 17 00:00:00 2001 From: thibault allenet <thibault.allenet@cea.fr> Date: Fri, 7 Jun 2024 07:48:14 +0000 Subject: [PATCH] fix loop bash --- .gitlab/ci/release/pip.gitlab-ci.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitlab/ci/release/pip.gitlab-ci.yml b/.gitlab/ci/release/pip.gitlab-ci.yml index ead1e2e..c27f86e 100644 --- a/.gitlab/ci/release/pip.gitlab-ci.yml +++ b/.gitlab/ci/release/pip.gitlab-ci.yml @@ -36,13 +36,17 @@ release:pip:ubuntu: echo "Warning: The project $CI_PROJECT_NAME has no dependency." DEPS_NAMES_2=() fi - - echo "DEPS_NAMES_2 = ${DEPS_NAMES[@]}" + - echo "${DEPS_NAMES_2[@]}" - > - for DEP_NAME in $DEPS_NAMES_2; do + for DEP_NAME in "${DEPS_NAMES_2[@]}"; do echo "current dep $DEP_NAME" done - > - for DEP_NAME in $DEPS_NAMES_2; do + for DEP_NAME in "${DEPS_NAMES[@]}"; do + echo "current dep $DEP_NAME" + done + - > + for DEP_NAME in "${DEPS_NAMES_2[@]}"; do echo "current dep $DEP_NAME" cd $DEP_NAME pip install . -v -- GitLab