Skip to content

Commit 9927da8

Browse files
committed
appease shellcheck
1 parent 957e122 commit 9927da8

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

.licenseignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,4 @@ def/protos/local/*
3838
.unacceptablelanguageignore
3939
LICENSE
4040
**/*.swift
41+
*.pb

dev/protos/generate.sh

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,27 +30,30 @@ function invoke_protoc {
3030
#- DESCRIPTOR SETS ------------------------------------------------------------
3131

3232
function generate_test_service_descriptor_set {
33-
local proto="$here/local/test-service.proto"
34-
local proto_path="$(dirname $proto)"
35-
local output="$root/Tests/GRPCProtobufCodeGenTests/Generated/test-service.pb"
33+
local proto proto_path output
34+
proto="$here/local/test-service.proto"
35+
proto_path="$(dirname "$proto")"
36+
output="$root/Tests/GRPCProtobufCodeGenTests/Generated/test-service.pb"
3637

3738
invoke_protoc --descriptor_set_out="$output" "$proto" -I "$proto_path" --include_source_info
3839
}
3940

4041
function generate_foo_service_descriptor_set {
41-
local proto="$here/local/foo-service.proto"
42-
local proto_path="$(dirname $proto)"
43-
local output="$root/Tests/GRPCProtobufCodeGenTests/Generated/foo-service.pb"
42+
local proto proto_path output
43+
proto="$here/local/foo-service.proto"
44+
proto_path="$(dirname "$proto")"
45+
output="$root/Tests/GRPCProtobufCodeGenTests/Generated/foo-service.pb"
4446

4547
invoke_protoc --descriptor_set_out="$output" "$proto" -I "$proto_path" \
4648
--include_source_info \
4749
--include_imports
4850
}
4951

5052
function generate_bar_service_descriptor_set {
51-
local proto="$here/local/bar-service.proto"
52-
local proto_path="$(dirname $proto)"
53-
local output="$root/Tests/GRPCProtobufCodeGenTests/Generated/bar-service.pb"
53+
local proto proto_path output
54+
proto="$here/local/bar-service.proto"
55+
proto_path="$(dirname "$proto")"
56+
output="$root/Tests/GRPCProtobufCodeGenTests/Generated/bar-service.pb"
5457

5558
invoke_protoc --descriptor_set_out="$output" "$proto" -I "$proto_path" \
5659
--include_source_info \

0 commit comments

Comments
 (0)