git: 00ee9c96c68c - main - sysutils/bhyve-rc: Fix writing to /dev/null in rc script

From: Bryan Drewery <bdrewery_at_FreeBSD.org>
Date: Thu, 16 Jun 2022 21:31:08 UTC
The branch main has been updated by bdrewery:

URL: https://cgit.FreeBSD.org/ports/commit/?id=00ee9c96c68c854851905e3a7480fbe215efe722

commit 00ee9c96c68c854851905e3a7480fbe215efe722
Author:     Bryan Drewery <bdrewery@FreeBSD.org>
AuthorDate: 2022-06-16 20:52:33 +0000
Commit:     Bryan Drewery <bdrewery@FreeBSD.org>
CommitDate: 2022-06-16 21:31:05 +0000

    sysutils/bhyve-rc: Fix writing to /dev/null in rc script
---
 sysutils/bhyve-rc/Makefile       | 2 +-
 sysutils/bhyve-rc/files/bhyve.in | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/sysutils/bhyve-rc/Makefile b/sysutils/bhyve-rc/Makefile
index f3eddb09f2f4..b17bb053291f 100644
--- a/sysutils/bhyve-rc/Makefile
+++ b/sysutils/bhyve-rc/Makefile
@@ -1,7 +1,7 @@
 # Created by: Michael Gmelin <freebsd@grem.de>
 
 PORTNAME=	bhyve-rc
-PORTVERSION=	3
+PORTVERSION=	4
 CATEGORIES=	sysutils
 MASTER_SITES=	# none
 DISTFILES=	# none
diff --git a/sysutils/bhyve-rc/files/bhyve.in b/sysutils/bhyve-rc/files/bhyve.in
index 32906a7b9229..7686f8cc9bdf 100644
--- a/sysutils/bhyve-rc/files/bhyve.in
+++ b/sysutils/bhyve-rc/files/bhyve.in
@@ -120,7 +120,7 @@ bhyve_status()
 bhyve_poll()
 {
 	echo -n "Waiting for session: ${_session}"
-	while ${command} has-session -t ${_session} 2>dev/null; do
+	while ${command} has-session -t ${_session} 2>/dev/null; do
 		sleep 1
 	done
 	echo
@@ -131,7 +131,7 @@ bhyve_stop()
 	if ${command} has-session -t ${_session} 2>/dev/null; then
 		echo "Stopping ${_session}."
 		${command} kill-session -t ${_session}
-		while ${command} has-session -t ${_session} 2>dev/null; do
+		while ${command} has-session -t ${_session} 2>/dev/null; do
 			sleep 1
 		done
 	fi