From 9f357f8ed138e92087a922812f9df3ca8aa5cbc6 Mon Sep 17 00:00:00 2001 From: longpanda Date: Mon, 1 Mar 2021 15:17:26 +0800 Subject: [PATCH] use uname -m to detect architecture (PR #774) --- INSTALL/Ventoy2Disk.sh | 4 ++-- INSTALL/VentoyWeb.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/INSTALL/Ventoy2Disk.sh b/INSTALL/Ventoy2Disk.sh index a283423d..fb499a95 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 721e419a..4c811e00 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