mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 02:28:09 +00:00 
			
		
		
		
	update copywrite exceptions to exclude *_ent.go (#29315)
This commit is contained in:
		| @@ -1,10 +1,11 @@ | |||||||
| #!/bin/sh | #!/bin/sh | ||||||
|  |  | ||||||
| # Used as a stopgap for copywrite bot in MPL-licensed subdirs, detects BUSL licensed | # 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. | # 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 |   if grep "SPDX-License-Identifier: BUSL-1.1" $line; then | ||||||
|     sed -i '/SPDX-License-Identifier: BUSL-1.1/d' $line |     sed -i '/SPDX-License-Identifier: BUSL-1.1/d' $line | ||||||
|     sed -i '/Copyright (c) HashiCorp, Inc./d' $line |     sed -i '/Copyright (c) HashiCorp, Inc./d' $line | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Thy Ton
					Thy Ton