Skip to content

Commit b5bb81f

Browse files
committed
fix
1 parent 193e22c commit b5bb81f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/install_protoc.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,11 @@ case "$(uname -m)" in
5454
esac
5555

5656
# Detect the Operating System
57+
INSTALL_PATH=${1:+"$1"}
58+
echo "Got install path as : $INSTALL_PATH"
5759
case "$(uname -s)" in
58-
"Darwin") download_binary $ARCH "osx" "$1";;
59-
"Linux") download_binary $ARCH "linux" "$1";;
60+
"Darwin") download_binary $ARCH "osx" "$INSTALL_PATH";;
61+
"Linux") download_binary $ARCH "linux" "$INSTALL_PATH";;
6062
*) die "Unsupported OS. Please consider manual installation from \
6163
https://github.com/protocolbuffers/protobuf/releases/ and add to PATH" ;;
6264
esac

0 commit comments

Comments
 (0)