Skip to content

Commit

Permalink
Update install_protoc.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
modassarrana89 authored Dec 2, 2024
1 parent dbfe4e4 commit 03afc67
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions scripts/install_protoc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ if [[ ${OSTYPE,,} =~ darwin ]]; then
OS="osx"
fi

ARCH="x86_64"
if [[ $(uname -m) =~ arm ]]; then
ARCH="aarch_64"
ARCH=$(uname -m)
if [[ "$ARCH" == "arm"* ]]; then
ARCH="aarch_64"
elif [[ "$ARCH" == "s390x" ]]; then
ARCH="s390_64"
elif [[ "$ARCH" == "ppc64le" ]] ; then
ARCH="ppcle_64"
fi

PROJECT_ROOT=$(realpath "$(dirname "$0")"/..)
Expand Down

0 comments on commit 03afc67

Please sign in to comment.