summaryrefslogtreecommitdiff
path: root/hack/update-vendor-licenses.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hack/update-vendor-licenses.sh')
-rwxr-xr-xhack/update-vendor-licenses.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/hack/update-vendor-licenses.sh b/hack/update-vendor-licenses.sh
index debc396c1..42d16fcae 100755
--- a/hack/update-vendor-licenses.sh
+++ b/hack/update-vendor-licenses.sh
@@ -206,8 +206,8 @@ for PACKAGE in ${modules}; do
fi
# if there are no files vendored under this package...
if [[ -z "$(find "${DEPS_DIR}/${PACKAGE}" -mindepth 1 -maxdepth 1 -type f)" ]]; then
- # and we have 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
+ # 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)" -le "$(echo "${modules}" | grep -cE "^${PACKAGE}/")" ]]; then
echo "Only submodules of ${PACKAGE} are vendored, skipping" >&2
continue
fi