Skip to content

Commit

Permalink
Merge pull request #391 from mattes-bru/run_protoc_on_mac
Browse files Browse the repository at this point in the history
macOS support for run_protoc.sh
  • Loading branch information
JonasVautherin authored Sep 20, 2021
2 parents 0d8ca14 + 4fde88a commit ab4b774
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion other/tools/run_protoc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ command -v protoc-gen-mavsdk > /dev/null || {
}

function snake_case_to_camel_case {
echo $1 | sed -r 's/(^|_)([a-z])/\U\2/g'
echo $1 | awk -v FS="_" -v OFS="" '{for (i=1;i<=NF;i++) $i=toupper(substr($i,1,1)) substr($i,2)} 1'
}

function generate {
Expand Down

0 comments on commit ab4b774

Please sign in to comment.