From dcfc74471c8cce5243ecb5039e683306ddd9a815 Mon Sep 17 00:00:00 2001 From: "James O. D. Hunt" Date: Tue, 3 Apr 2018 15:30:46 +0100 Subject: [PATCH] scripts: Quote variables in hypervisor script Double-quote the qemu version variables in the hypervisor configuration script. Signed-off-by: James O. D. Hunt --- scripts/configure-hypervisor.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/configure-hypervisor.sh b/scripts/configure-hypervisor.sh index 9a9e3a5c0..a2e62cdd1 100755 --- a/scripts/configure-hypervisor.sh +++ b/scripts/configure-hypervisor.sh @@ -290,7 +290,7 @@ main() # SECURITY: Don't build a static binary (lowers security) # needed if qemu version is less than 2.7 - if [ ${qemu_version_major} -eq 2 ] && [ ${qemu_version_minor} -lt 7 ]; then + if [ "${qemu_version_major}" -eq 2 ] && [ "${qemu_version_minor}" -lt 7 ]; then qemu_options+=(security:--disable-static) fi @@ -333,7 +333,7 @@ main() # Always strip binaries # needed if qemu version is less than 2.7 - if [ ${qemu_version_major} -eq 2 ] && [ ${qemu_version_minor} -lt 7 ]; then + if [ "${qemu_version_major}" -eq 2 ] && [ "${qemu_version_minor}" -lt 7 ]; then qemu_options+=(size:--enable-strip) fi