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