Missing brackets on x86_64 conditional 83/36983/1
authorDan Radez <dradez@redhat.com>
Wed, 5 Jul 2017 19:36:17 +0000 (15:36 -0400)
committerDan Radez <dradez@redhat.com>
Wed, 5 Jul 2017 19:36:17 +0000 (15:36 -0400)
Change-Id: I5436317075ceffa18c34e213795ed3816627d121
Signed-off-by: Dan Radez <dradez@redhat.com>
lib/configure-deps-functions.sh

index 3d0e3ac..4c00fbf 100755 (executable)
@@ -130,7 +130,7 @@ EOF
   virsh pool-list | grep -Eo "default\s+active" > /dev/null || (virsh pool-autostart default; virsh pool-start default)
 
   # Virt flag check is Arch dependent on x86
-  if "$(uname -i)" == 'x86_64'; then
+  if [ "$(uname -i)" == 'x86_64' ]; then
       if ! egrep '^flags.*(vmx|svm)' /proc/cpuinfo > /dev/null; then
         echo "${red}virtualization extensions not found, kvm kernel module insertion may fail.\n  \
 Are you sure you have enabled vmx in your bios or hypervisor?${reset}"