From: longpanda Date: Mon, 1 Mar 2021 07:17:26 +0000 (+0800) Subject: use uname -m to detect architecture (PR #774) X-Git-Tag: v1.0.37~5 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/commitdiff_plain/9f357f8ed138e92087a922812f9df3ca8aa5cbc6 use uname -m to detect architecture (PR #774) --- diff --git a/INSTALL/Ventoy2Disk.sh b/INSTALL/Ventoy2Disk.sh index a283423..fb499a9 100644 --- a/INSTALL/Ventoy2Disk.sh +++ b/INSTALL/Ventoy2Disk.sh @@ -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 diff --git a/INSTALL/VentoyWeb.sh b/INSTALL/VentoyWeb.sh index 721e419..4c811e0 100644 --- a/INSTALL/VentoyWeb.sh +++ b/INSTALL/VentoyWeb.sh @@ -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