mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +00:00
Fix license script to handle single-segment packages
This commit is contained in:
parent
8c8c4113f0
commit
7232c0fd0b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user