Skip to content

Commit a1756d2

Browse files
committed
fix: Fix script with condition for Windows instead of defaulting to it
1 parent 13cc509 commit a1756d2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

generateprotos.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@
88
# - GAPIC ShowCase
99

1010
# Cross-platform tools
11-
protoc_executable="tools/protoc.exe" # default to Windows
12-
grpc_csharp_executable="tools/grpc_csharp_plugin.exe" # default to Windows
1311
case "$OSTYPE" in
12+
win* | msys* | cygwin*)
13+
protoc_executable="tools/protoc.exe" # default to Windows
14+
grpc_csharp_executable="tools/grpc_csharp_plugin.exe" # default to Windows
15+
;;
1416
linux*)
1517
protoc_executable="tools/protoc"
1618
grpc_csharp_executable="tools/grpc_csharp_plugin"

0 commit comments

Comments
 (0)