diff --git a/hack/update-vendor-licenses.sh b/hack/update-vendor-licenses.sh index d9f7d3e0d6b..99c3411cfae 100755 --- a/hack/update-vendor-licenses.sh +++ b/hack/update-vendor-licenses.sh @@ -87,9 +87,12 @@ process_content () { # - gopkg.in/square/go-jose.v2 package_root=$(echo "${package}" |grep -oh '.*\.v[0-9]') ;; - *) + */*) package_root=$(echo "${package}" |awk -F/ '{ print $1"/"$2 }') ;; + *) + package_root="${package}" + ;; esac # Find files - only root and package level