Use bash for check-license-headers target

This commit is contained in:
Cody Soyland 2019-04-12 11:35:34 -05:00
parent fdbfc68f7c
commit 3c1d3e3145

View file

@ -155,6 +155,7 @@ gometalinter: require-gometalinter vendor
./...
# Verify that all Go files have license header
check-license-headers: SHELL:=/bin/bash
check-license-headers:
@! find . -name '*.go' | grep -v '^./vendor' | while read fn;\
do [[ `head -13 $$fn | shasum | cut -f 1 -d " "` == $(LICENSE_HASH) ]] || echo $$fn; done | \