From 2a72c50f75796abc5194302d9101ba3e7d85255c Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Tue, 9 Jul 2013 18:13:54 +0200 Subject: [vmware/vmchooser] add quotes everywhere to allow for spaces in filenames of vm images --- remote/modules/vmplayer/data/etc/openslx/vmware/run-virt.include | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'remote/modules/vmplayer/data') diff --git a/remote/modules/vmplayer/data/etc/openslx/vmware/run-virt.include b/remote/modules/vmplayer/data/etc/openslx/vmware/run-virt.include index 45ff2d72..0267656d 100644 --- a/remote/modules/vmplayer/data/etc/openslx/vmware/run-virt.include +++ b/remote/modules/vmplayer/data/etc/openslx/vmware/run-virt.include @@ -309,7 +309,7 @@ confdir=/tmp/vmware/${USER}.$$ # configfile conffile="${confdir}/run-vmware.conf" # diskfile -diskfile=${vmpath} +diskfile="${vmpath}" # users vmware config folder vmhome="${HOME}/.vmware" @@ -400,7 +400,7 @@ esac # check if ide/scsi and hwver of image # read only the first 30 lines to be sure -imghead=$(head -n 30 ${diskfile}) +imghead=$(head -n 30 "${diskfile}") hddrv=$(echo "${imghead}" | grep -m1 -ia "ddb.adapterType" | awk -F '"' '{print $2}') hwver=$(echo "${imghead}" | grep -m1 -ia "ddb.virtualHWVersion" | awk -F '"' '{print $2}') case "${hddrv}" in -- cgit v1.2.3-55-g7522