Skip to content

Commit

Permalink
feat: linux macos gen.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
withchao committed Apr 17, 2024
1 parent 9909311 commit e20b152
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,8 @@ for name in "${PROTO_NAMES[@]}"; do
fi
done

find . -type f -name '*.pb.go' -exec sed -i '' 's/,omitempty"`/\"\`/g' {} +
if [ "$(uname -s)" == "Darwin" ]; then
find . -type f -name '*.pb.go' -exec sed -i '' 's/,omitempty"`/\"\`/g' {} +
else
find . -type f -name '*.pb.go' -exec sed -i 's/,omitempty"`/\"\`/g' {} +
fi

0 comments on commit e20b152

Please sign in to comment.