From e75b29e0b29add97409a4733dddbd0def8d563e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Rondeau?= Date: Wed, 22 Jun 2022 14:02:02 +0200 Subject: [PATCH] Fix patch presence detection --- assets/build/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/build/install.sh b/assets/build/install.sh index f34537d83..9c79d60ee 100755 --- a/assets/build/install.sh +++ b/assets/build/install.sh @@ -83,7 +83,7 @@ exec_as_git git config --global advice.detachedHead false echo "Cloning gitlab-foss v.${GITLAB_VERSION}..." exec_as_git git clone -q -b v${GITLAB_VERSION} --depth 1 ${GITLAB_CLONE_URL} ${GITLAB_INSTALL_DIR} -if [[ -d "${GITLAB_BUILD_DIR}/patches" && -f "${GITLAB_BUILD_DIR}/patches/*.patch" ]]; then +if compgen -G "${GITLAB_BUILD_DIR}/patches/*.patch" >/dev/null; then echo "Applying patches for gitlab-foss..." exec_as_git git -C ${GITLAB_INSTALL_DIR} apply --ignore-whitespace < ${GITLAB_BUILD_DIR}/patches/*.patch fi