From e4aedfabe7d586a5633a8be2dcb253b4ac7afca8 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 17 Jan 2011 12:10:15 +0100 Subject: commit of quickfixes on 4.2 --- src/os-plugins/plugins/vmgrid/files/run-vmgrid.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/os-plugins/plugins/vmgrid/files/run-vmgrid.sh') diff --git a/src/os-plugins/plugins/vmgrid/files/run-vmgrid.sh b/src/os-plugins/plugins/vmgrid/files/run-vmgrid.sh index 51cb5dbc..c4a680b3 100644 --- a/src/os-plugins/plugins/vmgrid/files/run-vmgrid.sh +++ b/src/os-plugins/plugins/vmgrid/files/run-vmgrid.sh @@ -267,7 +267,7 @@ xmlvirt=$(grep -o 'virtualmachine param=.*"' ${xmlfile} \ if [ -z "${xmlvirt}" ] && [ -n "${additional_config}" ]; then writelog "No virtual machine parameter defined in ${xmlfile}" writelog "Trying to guess VM...\c" - case "$(cat ${additional_config} | tr [A-Z] [a-z])" in + case "$(cat ${additional_config} | tr \"[A-Z]\" \"[a-z]\")" in *config.version*|*virtualhw.version*|*independent-nonpersistent*|*vmdk*) xmlvirt="vmware" ;; @@ -282,7 +282,7 @@ if [ -z "${xmlvirt}" ] && [ -n "${additional_config}" ]; then ;; esac elif [ -z "${xmlvirt}" ]; then - case "$(echo ${imgname##*.} | tr [A-Z] [a-z])" in + case "$(echo ${imgname##*.} | tr \"[A-Z]\" \"[a-z]\")" in vmdk) xmlvirt="vmware" ;; @@ -308,13 +308,13 @@ fi # definition of the client system vmostype=$(grep -io '