Skip to content

Commit

Permalink
use uname -m to detect architecture (PR ventoy#774)
Browse files Browse the repository at this point in the history
  • Loading branch information
ventoy committed Mar 1, 2021
1 parent eb1a014 commit 9f357f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions INSTALL/Ventoy2Disk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ if [ -f ./ventoy/version ]; then
curver=$(cat ./ventoy/version)
fi

if uname -a | egrep -q 'aarch64|arm64'; then
if uname -m | egrep -q 'aarch64|arm64'; then
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
else
export TOOLDIR=i386
Expand Down
4 changes: 2 additions & 2 deletions INSTALL/VentoyWeb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ fi

OLDDIR=$(pwd)

if uname -a | egrep -q 'aarch64|arm64'; then
if uname -m | egrep -q 'aarch64|arm64'; then
TOOLDIR=aarch64
elif uname -a | egrep -q 'x86_64|amd64'; then
elif uname -m | egrep -q 'x86_64|amd64'; then
TOOLDIR=x86_64
else
TOOLDIR=i386
Expand Down

0 comments on commit 9f357f8

Please sign in to comment.