From 1648196e6e4f4bbad4f44adba3ad767105aec800 Mon Sep 17 00:00:00 2001 From: Thy Ton Date: Wed, 8 Jan 2025 13:00:11 -0800 Subject: [PATCH] exclude *_ent_test.go from copywrite-exceptions.sh --- scripts/copywrite-exceptions.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/copywrite-exceptions.sh b/scripts/copywrite-exceptions.sh index 0c3c56d14642..0ac8043f1040 100755 --- a/scripts/copywrite-exceptions.sh +++ b/scripts/copywrite-exceptions.sh @@ -4,8 +4,7 @@ # headers in only files intended for public users, and deletes them, # then runs the copywrite bot to utilize local subdir config # to inject correct headers. - -find . -type f -name '*.go' -not -name '*_ent.go' | while read line; do +find . -type f -name '*.go' -not -name '*_ent.go' -not -name '*_ent_test.go' | while read line; do if grep "SPDX-License-Identifier: BUSL-1.1" $line; then sed -i '/SPDX-License-Identifier: BUSL-1.1/d' $line sed -i '/Copyright (c) HashiCorp, Inc./d' $line