diff --git a/scripts/proto-gen.sh b/scripts/proto-gen.sh index f05dbd0230..e07f278b40 100644 --- a/scripts/proto-gen.sh +++ b/scripts/proto-gen.sh @@ -2,6 +2,10 @@ # Check if buf is installed or not # Please install buf if not already installed by following the instructions at https://docs.buf.build/installation +if ! command -v buf >/dev/null 2>&1; then + echo "Please install buf if not already installed by following the instructions at https://docs.buf.build/installation" + exit +fi buf lint protobuf rm -rf ./libs/protobuf/src buf generate protobuf \ No newline at end of file