Skip to content

Commit

Permalink
Fix ifs of architecture to avoid issue in ARM environments. (moovweb#436
Browse files Browse the repository at this point in the history
)
  • Loading branch information
logoff authored Aug 14, 2023
1 parent b2fcbdf commit dd65253
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/install
Original file line number Diff line number Diff line change
Expand Up @@ -182,15 +182,15 @@ download_binary() {
GVM_OS="linux"
fi

if [ "$(uname -m)" == "x86_64" ]; then
if [[ "$(uname -m)" == "x86_64" ]]; then
GVM_ARCH="amd64"
elif [ "$(uname -m)" == "ppc64le" ]; then
elif [[ "$(uname -m)" == "ppc64le" ]]; then
GVM_ARCH="ppc64le"
elif [[ "$(uname -m)" == "aarch64" || "$(uname -m)" == "arm64" ]]; then
GVM_ARCH="arm64"
elif [[ "$(uname -m)" == "i386" || "$(uname -m)" == "i686" ]]; then
GVM_ARCH="i386"
elif [ "$(uname -m)" == "armv7l" || "$(uname -m)" == "armv6l" ]; then
elif [[ "$(uname -m)" == "armv7l" || "$(uname -m)" == "armv6l" ]]; then
GVM_ARCH="armv6l"
else
GVM_ARCH="s390x"
Expand Down

0 comments on commit dd65253

Please sign in to comment.