mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +00:00
Merge pull request #114782 from skitt/vendor-license-submodules
Licensing: skip modules with fewer subdirs than mods
This commit is contained in:
commit
83afc363a6
@ -201,8 +201,8 @@ for PACKAGE in ${modules}; do
|
|||||||
|
|
||||||
# if there are no files vendored under this package...
|
# if there are no files vendored under this package...
|
||||||
if [[ -z "$(find "${DEPS_DIR}/${PACKAGE}" -mindepth 1 -maxdepth 1 -type f)" ]]; then
|
if [[ -z "$(find "${DEPS_DIR}/${PACKAGE}" -mindepth 1 -maxdepth 1 -type f)" ]]; then
|
||||||
# and we have the same number of submodules as subdirectories...
|
# and we have at least the same number of submodules as subdirectories...
|
||||||
if [[ "$(find "${DEPS_DIR}/${PACKAGE}/" -mindepth 1 -maxdepth 1 -type d | wc -l)" -eq "$(echo "${modules}" | grep -cE "^${PACKAGE}/")" ]]; then
|
if [[ "$(find "${DEPS_DIR}/${PACKAGE}/" -mindepth 1 -maxdepth 1 -type d | wc -l)" -le "$(echo "${modules}" | grep -cE "^${PACKAGE}/")" ]]; then
|
||||||
echo "Only submodules of ${PACKAGE} are vendored, skipping" >&2
|
echo "Only submodules of ${PACKAGE} are vendored, skipping" >&2
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user