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
83
83
echo " Cloning gitlab-foss v.${GITLAB_VERSION} ..."
84
84
exec_as_git git clone -q -b v${GITLAB_VERSION} --depth 1 ${GITLAB_CLONE_URL} ${GITLAB_INSTALL_DIR}
85
85
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
90
90
91
91
GITLAB_SHELL_VERSION=${GITLAB_SHELL_VERSION:- $(cat ${GITLAB_INSTALL_DIR} / GITLAB_SHELL_VERSION)}
92
92
GITLAB_PAGES_VERSION=${GITLAB_PAGES_VERSION:- $(cat ${GITLAB_INSTALL_DIR} / GITLAB_PAGES_VERSION)}
You can’t perform that action at this time.
0 commit comments