Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aranjans committed Jun 4, 2024
1 parent 193e22c commit b5bb81f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/install_protoc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,11 @@ case "$(uname -m)" in
esac

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

0 comments on commit b5bb81f

Please sign in to comment.