1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-10 07:04:03 +00:00

emulators/open-vm-tools: Fix vmware-guestd rc

Add eval to the call to ${checkvm_cmd} to make sure stdout/stderr are
redirect to /dev/null and remove spurious output when it's executed

PR:		266520
Sponsored by:	Rubicon Communications, LLC ("Netgate")
This commit is contained in:
Geoff Davis 2022-10-03 14:51:41 -03:00 committed by Renato Botelho
parent f63d317dfc
commit 8f9a376fdf
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
PORTNAME= open-vm-tools
PORTVERSION= 12.1.0
DISTVERSIONPREFIX= stable-
PORTVERSION= 1
PORTEPOCH= 2
CATEGORIES= emulators

View File

@ -18,7 +18,7 @@ rcvar=vmware_guestd_enable
load_rc_config $name
checkvm_cmd="%%PREFIX%%/bin/vmware-checkvm > /dev/null 2>&1"
if ${checkvm_cmd}; then
if eval "${checkvm_cmd}"; then
: ${vmware_guestd_enable:="YES"}
else
: ${vmware_guestd_enable:="NO"}