fix(quickemu): quote qemu-system-${ARCH_VM} lookup

Signed-off-by: Martin Wimpress <martin@wimpress.org>
This commit is contained in:
Martin Wimpress 2026-01-24 20:15:23 +00:00
parent 5276ebaafb
commit 2e147f658e
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -2406,7 +2406,7 @@ readonly VERSION="4.9.9"
arch="${arch:-x86_64}"
ARCH_VM="${arch}"
ARCH_HOST=$(uname -m)
QEMU=$(command -v qemu-system-${ARCH_VM})
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-${ARCH_VM}' and 'qemu-img' are installed."
@ -2609,7 +2609,7 @@ if [ -n "${VM}" ] && [ -e "${VM}" ]; then
# Re-detect architecture and QEMU binary after sourcing config
# Config file can set arch="aarch64" to override the default
ARCH_VM="${arch:-x86_64}"
QEMU=$(command -v qemu-system-${ARCH_VM})
QEMU=$(command -v "qemu-system-${ARCH_VM}")
if [ ! -x "${QEMU}" ]; then
echo "ERROR! qemu-system-${ARCH_VM} not found."
echo " Please install QEMU for ${ARCH_VM} architecture."