diff --git a/scripts/protocgen.sh b/scripts/protocgen.sh index 828b9f00..f4ae1063 100644 --- a/scripts/protocgen.sh +++ b/scripts/protocgen.sh @@ -3,9 +3,7 @@ set -eox pipefail echo "Generating proto code" -cd proto -buf mod update -cd .. + proto_dirs=$(find ./proto -path -prune -o -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq) for dir in $proto_dirs; do for file in $(find "${dir}" -maxdepth 1 -name '*.proto'); do