Skip to content

Commit

Permalink
Merge ad35129 into backport/thyton/VAULT-32686/update-copywrite-excep…
Browse files Browse the repository at this point in the history
…tions/constantly-pure-robin
  • Loading branch information
hc-github-team-secure-vault-core authored Jan 8, 2025
2 parents 8e8f9fc + ad35129 commit 7dff32f
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 7dff32f

Please sign in to comment.