git: ab7a262fec86 - main - ports-mgmt/rc-subr-jail: Fix jail_mount_devfs check during jail destruction

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Sat, 04 Mar 2023 11:43:50 UTC
The branch main has been updated by arrowd:

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

commit ab7a262fec8673d29b4af08dbd7a5b2c8b3653eb
Author:     Alexey Yushkin <636808@mail.ru>
AuthorDate: 2023-03-03 10:59:38 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2023-03-04 11:43:09 +0000

    ports-mgmt/rc-subr-jail: Fix jail_mount_devfs check during jail destruction
    
    Co-authored-by: Alexey Donskov <voxnod@gmail.com>
---
 ports-mgmt/rc-subr-jail/Makefile           | 2 +-
 ports-mgmt/rc-subr-jail/files/rc.subr.jail | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ports-mgmt/rc-subr-jail/Makefile b/ports-mgmt/rc-subr-jail/Makefile
index 8569189f5651..e380cc8a5302 100644
--- a/ports-mgmt/rc-subr-jail/Makefile
+++ b/ports-mgmt/rc-subr-jail/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	rc-subr-jail
-PORTVERSION=	2
+PORTVERSION=	3
 CATEGORIES=	ports-mgmt
 MASTER_SITES=	#
 DISTFILES=	#
diff --git a/ports-mgmt/rc-subr-jail/files/rc.subr.jail b/ports-mgmt/rc-subr-jail/files/rc.subr.jail
index f91fe7ddf8fa..7d16c34bf9ee 100644
--- a/ports-mgmt/rc-subr-jail/files/rc.subr.jail
+++ b/ports-mgmt/rc-subr-jail/files/rc.subr.jail
@@ -111,7 +111,7 @@ destroy_jail()
     local jroot
     jroot="$1"
 
-    if [ "$jail_mount_devfs" ]; then
+    if [ "$jail_mount_devfs" = "yes" ]; then
         rmdir "$jroot/dev"
     fi