Skip to content

Commit

Permalink
exclude *_ent_test.go from copywrite-exceptions.sh (#29319)
Browse files Browse the repository at this point in the history
  • Loading branch information
thyton authored Jan 8, 2025
1 parent ad35129 commit 607991e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/copywrite-exceptions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# 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
Expand Down

0 comments on commit 607991e

Please sign in to comment.