mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-10 08:20:23 +00:00
91774fc936
Uses github.com/libopenstorage/secrets to communicate with Vault. This removes the need for maintaining our own limited Vault APIs. By adding the new dependency, several other packages got updated in the process. Unused indirect dependencies have been removed from go.mod. Signed-off-by: Niels de Vos <ndevos@redhat.com>
18 lines
294 B
Bash
18 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
|