Unverified Commit 935ee90d authored by Matthew Fisher's avatar Matthew Fisher
Browse files

fix(validate-license): update to work with newer versions of coreutils


Signed-off-by: default avatarMatthew Fisher <matt.fisher@microsoft.com>
Showing with 2 additions and 2 deletions
+2 -2
...@@ -27,7 +27,7 @@ find_files() { ...@@ -27,7 +27,7 @@ find_files() {
\( -name '*.go' -o -name '*.sh' -o -name 'Dockerfile' \) \( -name '*.go' -o -name '*.sh' -o -name 'Dockerfile' \)
} }
failed_license_header=($(find_files | xargs grep -L 'Licensed under the Apache License, Version 2.0 (the "License");')) failed_license_header=($(grep -L 'Licensed under the Apache License, Version 2.0 (the "License");' $(find_files))) || :
if (( ${#failed_license_header[@]} > 0 )); then if (( ${#failed_license_header[@]} > 0 )); then
echo "Some source files are missing license headers." echo "Some source files are missing license headers."
for f in "${failed_license_header[@]}"; do for f in "${failed_license_header[@]}"; do
...@@ -36,7 +36,7 @@ if (( ${#failed_license_header[@]} > 0 )); then ...@@ -36,7 +36,7 @@ if (( ${#failed_license_header[@]} > 0 )); then
exit 1 exit 1
fi fi
failed_copyright_header=($(find_files | xargs grep -L 'Copyright The Helm Authors.')) failed_copyright_header=($(grep -L 'Copyright The Helm Authors.' $(find_files))) || :
if (( ${#failed_copyright_header[@]} > 0 )); then if (( ${#failed_copyright_header[@]} > 0 )); then
echo "Some source files are missing the copyright header." echo "Some source files are missing the copyright header."
for f in "${failed_copyright_header[@]}"; do for f in "${failed_copyright_header[@]}"; do
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment