From 224e32bcb3f2366665b30f373e96143dca032ef4 Mon Sep 17 00:00:00 2001 From: Mike Danese Date: Mon, 24 Oct 2016 11:34:55 -0700 Subject: [PATCH] make godep licenses/copyright check case insensitive --- hack/update-godep-licenses.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hack/update-godep-licenses.sh b/hack/update-godep-licenses.sh index ca80b4ffd99..e5899053ef8 100755 --- a/hack/update-godep-licenses.sh +++ b/hack/update-godep-licenses.sh @@ -57,13 +57,13 @@ process_content () { # Sadly inconsistent in the wild, but mostly license files # containing copyrights, but no readme/notice files containing # licenses (except to "see license file") - ensure_pattern="License|Copyright" + ensure_pattern="license|copyright" ;; # We search READMEs for copyrights and this includes notice files as well # Look in as many places as we find files matching COPYRIGHT) find_names=(-iname 'notice*' -o -iname 'readme*') find_maxdepth=3 - ensure_pattern="Copyright" + ensure_pattern="copyright" ;; esac @@ -97,7 +97,7 @@ process_content () { if [[ -z "${CONTENT[${index}]-}" ]]; then for f in ${local_files[@]-}; do # Find some copyright info in any file and break - if egrep -wq "${ensure_pattern}" "${f}"; then + if egrep -i -wq "${ensure_pattern}" "${f}"; then CONTENT[${index}]="${f}" break fi