diff --git a/quickemu b/quickemu index f86e5c2..a69ab2d 100755 --- a/quickemu +++ b/quickemu @@ -1814,10 +1814,12 @@ readonly DISK_MIN_SIZE=$((197632 * 8)) readonly VERSION="4.9.5" # TODO: Make this run the native architecture binary -QEMU=$(command -v qemu-system-x86_64) +ARCH_VM="x86_64" +ARCH_HOST=$(uname -m) +QEMU=$(command -v qemu-system-${ARCH_VM}) QEMU_IMG=$(command -v qemu-img) if [ ! -x "${QEMU}" ] || [ ! -x "${QEMU_IMG}" ]; then - echo "ERROR! QEMU not found. Please make sure 'qemu-system-x86_64' and 'qemu-img' are installed." + echo "ERROR! QEMU not found. Please make sure 'qemu-system-${ARCH_VM}' and 'qemu-img' are installed." exit 1 fi