scripts: remove special case for _strings.go files in check license headers

And add a license header for derp/dropreason_string.go to make it happy.

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
pull/2460/head
Josh Bleecher Snyder 3 years ago committed by Josh Bleecher Snyder
parent 4b1f2ae382
commit 0ec9040c5e

@ -1,3 +1,7 @@
// Copyright (c) 2021 Tailscale Inc & AUTHORS All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Code generated by "stringer -type=dropReason -trimprefix=dropReason"; DO NOT EDIT. // Code generated by "stringer -type=dropReason -trimprefix=dropReason"; DO NOT EDIT.
package derp package derp

@ -38,9 +38,6 @@ for file in $(find $1 -name '*.go' -not -path '*/.git/*'); do
$1/wgengine/router/ifconfig_windows.go) $1/wgengine/router/ifconfig_windows.go)
# WireGuard copyright. # WireGuard copyright.
;; ;;
*_string.go)
# Generated file from go:generate stringer
;;
*) *)
header="$(head -3 $file)" header="$(head -3 $file)"
if ! check_file "$header"; then if ! check_file "$header"; then

Loading…
Cancel
Save