Commit 9f357f8e authored by longpanda's avatar longpanda
Browse files

use uname -m to detect architecture (PR #774)

parent eb1a014d
...@@ -12,9 +12,9 @@ if [ -f ./ventoy/version ]; then ...@@ -12,9 +12,9 @@ if [ -f ./ventoy/version ]; then
curver=$(cat ./ventoy/version) curver=$(cat ./ventoy/version)
fi fi
if uname -a | egrep -q 'aarch64|arm64'; then if uname -m | egrep -q 'aarch64|arm64'; then
export TOOLDIR=aarch64 export TOOLDIR=aarch64
elif uname -a | egrep -q 'x86_64|amd64'; then elif uname -m | egrep -q 'x86_64|amd64'; then
export TOOLDIR=x86_64 export TOOLDIR=x86_64
else else
export TOOLDIR=i386 export TOOLDIR=i386
......
...@@ -23,9 +23,9 @@ fi ...@@ -23,9 +23,9 @@ fi
OLDDIR=$(pwd) OLDDIR=$(pwd)
if uname -a | egrep -q 'aarch64|arm64'; then if uname -m | egrep -q 'aarch64|arm64'; then
TOOLDIR=aarch64 TOOLDIR=aarch64
elif uname -a | egrep -q 'x86_64|amd64'; then elif uname -m | egrep -q 'x86_64|amd64'; then
TOOLDIR=x86_64 TOOLDIR=x86_64
else else
TOOLDIR=i386 TOOLDIR=i386
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment