summaryrefslogtreecommitdiffstats
path: root/remote/modules/vmplayer
diff options
context:
space:
mode:
authorJonathan Bauer2013-07-09 18:13:54 +0200
committerJonathan Bauer2013-07-09 18:13:54 +0200
commit2a72c50f75796abc5194302d9101ba3e7d85255c (patch)
tree8043a498f3b59164b5a1deee9560cc1b17d98559 /remote/modules/vmplayer
parentAdded glibc-locale as Suse equivalent to Ubuntu language-pack-de(-base) (diff)
downloadtm-scripts-2a72c50f75796abc5194302d9101ba3e7d85255c.tar.gz
tm-scripts-2a72c50f75796abc5194302d9101ba3e7d85255c.tar.xz
tm-scripts-2a72c50f75796abc5194302d9101ba3e7d85255c.zip
[vmware/vmchooser] add quotes everywhere to allow for spaces in filenames of vm images
Diffstat (limited to 'remote/modules/vmplayer')
-rw-r--r--remote/modules/vmplayer/data/etc/openslx/vmware/run-virt.include4
1 files changed, 2 insertions, 2 deletions
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