github.com/silveraid/fabric-ca@v1.1.0-preview.0.20180127000700-71974f53ab08/scripts/check_license (about) 1 #!/bin/bash 2 # 3 # Copyright IBM Corp. All Rights Reserved. 4 # 5 # SPDX-License-Identifier: Apache-2.0 6 # 7 8 echo "Checking Go files for license headers ..." 9 missing=`grep -l -L "Apache License" \`find . -name "*.go"\` |grep -v "./vendor"` 10 if [ $? -eq 0 ]; then 11 echo "The following files are missing license headers:" 12 echo "$missing" 13 exit 1 14 fi 15 echo "All go files have license headers"