Skip to content

Commit

Permalink
backport of commit ad35129 (#29317)
Browse files Browse the repository at this point in the history
Co-authored-by: Thy Ton <[email protected]>
  • Loading branch information
1 parent 55024eb commit e8b4f63
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/copywrite-exceptions.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/bin/sh

# Used as a stopgap for copywrite bot in MPL-licensed subdirs, detects BUSL licensed
# headers and deletes them, then runs the copywrite bot to utilize local subdir config
# 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' | while read line; do
find . -type f -name '*.go' -not -name '*_ent.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 e8b4f63

Please sign in to comment.