github.com/facebookincubator/go-belt@v0.0.0-20230703220935-39cd348f1a38/.github/scripts/check_license_headers.sh (about) 1 #!/bin/sh 2 3 SCRIPT_PATH="$(dirname "$0")" 4 find . -type f -name "*.go" \( -exec "$SCRIPT_PATH"/check_license_header.sh {} \; -o -print \) | awk 'BEGIN{count=0} {count++; print "Error: File "$0" is missing a correct license header"} END{if(count != 0){ exit 1 }}' >&2