mirror of https://github.com/linkerd/linkerd2.git
17 lines
290 B
Bash
Executable File
17 lines
290 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
set -eu
|
|
|
|
bindir=$( cd "${0%/*}" && pwd )
|
|
"$bindir"/protoc-go.sh
|
|
|
|
dir_dirty=$(git diff HEAD)
|
|
if [ -z "$dir_dirty" ]; then
|
|
echo 'Protobuf definitions match generated code'
|
|
exit 0
|
|
else
|
|
echo 'Protobuf definitions diverge from generated code:'
|
|
git status
|
|
exit 64
|
|
fi
|