From 61c0c100bdac9aff60e3c40ebfd467f045e35598 Mon Sep 17 00:00:00 2001 From: Dominik Lammers Date: Mon, 19 Jun 2023 07:54:23 +0200 Subject: [PATCH] fix: Check for directories for dropins --- ci-templates/gitlab/image-builder.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci-templates/gitlab/image-builder.yml b/ci-templates/gitlab/image-builder.yml index 841d52f4..72205b6d 100644 --- a/ci-templates/gitlab/image-builder.yml +++ b/ci-templates/gitlab/image-builder.yml @@ -234,13 +234,13 @@ capella/base: - *docker - mv ../capella.tar.gz ./capella/versions/$CAPELLA_VERSION/$BUILD_ARCHITECTURE/capella.tar.gz - > - if [[ -n "$(find ../dropins -maxdepth 0 -type f)" ]]; then + if [[ -n "$(find ../dropins -maxdepth 1 -type d)" ]]; then mv ../dropins/* ./capella/versions/$CAPELLA_VERSION/dropins/ else echo "No files to move in dropins" fi - > - if [[ -n "$(find ../patches -maxdepth 0 -type f)" ]]; then + if [[ -n "$(find ../patches -maxdepth 1 -type f -not -path '*/\.*')" ]]; then mv ../patches/* ./capella/versions/$CAPELLA_VERSION/patches/ else echo "No files to move in patches"