eclass/kernel-2: Sync with Gentoo

It's from Gentoo commit 9ee6cf6c1f64d7cd7214353d0a71fde1d8daea5b.
This commit is contained in:
Flatcar Buildbot 2023-09-25 07:13:01 +00:00 committed by Krzesimir Nowak
parent 4725825d65
commit 6cc8b6c297

View File

@ -877,7 +877,7 @@ install_sources() {
dodir /usr/src
einfo ">>> Copying sources ..."
file="$(find ${WORKDIR} -iname "docs" -type d)"
file="$(find "${WORKDIR}" -iname "docs" -type d)"
if [[ -n ${file} ]]; then
for file in $(find ${file} -type f); do
echo "${file//*docs\/}" >> "${S}"/patches.txt