From a84196c6ff4a0af1c52e2e0da0272931821e05cb Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Fri, 19 Oct 2007 20:59:51 +0000 Subject: Compatibility for vmplayer 1 & 2 ... git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1390 95ad53e4-c205-0410-b2fa-d234c58c8868 --- virtualization/templates/runvmware-v2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'virtualization/templates') diff --git a/virtualization/templates/runvmware-v2 b/virtualization/templates/runvmware-v2 index c61de300..a39e2cbf 100644 --- a/virtualization/templates/runvmware-v2 +++ b/virtualization/templates/runvmware-v2 @@ -484,7 +484,7 @@ filecheck # strings is the fastest and most secure way, vmplayer -v takes too much time # and resources vmbuild=$(strings /usr/lib/vmware/bin/vmplayer \ - | grep Releasebuild-|sed 's/.*Releasebuild-//') + | grep -m 1 "build-"|sed 's/.*build-//') if [ ! -n ${vmbuild} ]; then vmbuild=$(vmplayer -v | sed 's/.*build-//') fi -- cgit v1.2.3-55-g7522