Skip to content

Commit 7232c0f

Browse files
committed
Fix license script to handle single-segment packages
1 parent 8c8c411 commit 7232c0f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

hack/update-vendor-licenses.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,12 @@ process_content () {
8787
# - gopkg.in/square/go-jose.v2
8888
package_root=$(echo "${package}" |grep -oh '.*\.v[0-9]')
8989
;;
90-
*)
90+
*/*)
9191
package_root=$(echo "${package}" |awk -F/ '{ print $1"/"$2 }')
9292
;;
93+
*)
94+
package_root="${package}"
95+
;;
9396
esac
9497

9598
# Find files - only root and package level

0 commit comments

Comments
 (0)