File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -83,10 +83,10 @@ exec_as_git git config --global advice.detachedHead false
8383echo " Cloning gitlab-foss v.${GITLAB_VERSION} ..."
8484exec_as_git git clone -q -b v${GITLAB_VERSION} --depth 1 ${GITLAB_CLONE_URL} ${GITLAB_INSTALL_DIR}
8585
86- if [[ -d " ${GITLAB_BUILD_DIR} /patches" && -f " ${GITLAB_BUILD_DIR} /patches/ *.patch" ]] ; then
87- echo " Applying patches for gitlab-foss..."
88- exec_as_git git -C ${GITLAB_INSTALL_DIR} apply --ignore-whitespace < ${GITLAB_BUILD_DIR} /patches/ * .patch
89- fi
86+ find " ${GITLAB_BUILD_DIR} /patches/ " -name " *.patch" | while read -r patch_file ; do
87+ printf " Applying patch %s for gitlab-foss...\n " " ${patch_file} "
88+ exec_as_git git -C ${GITLAB_INSTALL_DIR} apply --ignore-whitespace < " ${patch_file} "
89+ done
9090
9191GITLAB_SHELL_VERSION=${GITLAB_SHELL_VERSION:- $(cat ${GITLAB_INSTALL_DIR} / GITLAB_SHELL_VERSION)}
9292GITLAB_PAGES_VERSION=${GITLAB_PAGES_VERSION:- $(cat ${GITLAB_INSTALL_DIR} / GITLAB_PAGES_VERSION)}
You can’t perform that action at this time.
0 commit comments