Skip to content

Commit

Permalink
address shell linter
Browse files Browse the repository at this point in the history
  • Loading branch information
MalteHerrmann committed Aug 1, 2024
1 parent eb039f4 commit bf4c7b4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions scripts/generate_protos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ set -eo pipefail

proto_dirs=$(find ./proto -path -prune -o -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq)
for dir in $proto_dirs; do
proto_files=$(find "${dir}" -maxdepth 1 -name '*.proto')
for file in $proto_files; do
# Check if the go_package in the file is pointing to evmos
if grep -q "option go_package.*evmos/os" "$file"; then
buf generate --template proto/buf.gen.gogo.yaml "$file"
fi
done
proto_files=$(find "${dir}" -maxdepth 1 -name '*.proto')
for file in $proto_files; do
# Check if the go_package in the file is pointing to evmos
if grep -q "option go_package.*evmos/os" "$file"; then
buf generate --template proto/buf.gen.gogo.yaml "$file"
fi
done
done

# move proto files to the right places
Expand Down

0 comments on commit bf4c7b4

Please sign in to comment.