#!/usr/bin/env bash

set -e
source generate-protos.sh

GIT_STATUS="$(git status --porcelain)"
if [ "$GIT_STATUS" ]; then 
	echo "Protobufs were not generated with protoc. Please run generate-protos.sh"
	echo "Git status is"
	echo "------------------------------------------------------------------"
	echo "$GIT_STATUS"
	exit 1
fi
