mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-04 18:52:38 +00:00
Fix license script to handle single-segment packages
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user