ingress-nginx-helm/vendor/go.uber.org/zap/check_license.sh
Manuel Alejandro de Brito Fontes d3c957192e
Update go dependencies
2019-05-23 04:58:14 -04:00

17 lines
294 B
Bash

#!/bin/bash -e
ERROR_COUNT=0
while read -r file
do
case "$(head -1 "${file}")" in
*"Copyright (c) "*" Uber Technologies, Inc.")
# everything's cool
;;
*)
echo "$file is missing license header."
(( ERROR_COUNT++ ))
;;
esac
done < <(git ls-files "*\.go")
exit $ERROR_COUNT