git: 210551bbeb48 - main - ports-mgmt/rc-subr-jail: Fix jail_copy_programs handler.

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Wed, 01 Mar 2023 17:35:41 UTC
The branch main has been updated by arrowd:

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

commit 210551bbeb487b9208e60a9c7a6a693292e993b0
Author:     Alexey Yushkin <636808@mail.ru>
AuthorDate: 2023-03-01 16:27:30 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2023-03-01 17:33:37 +0000

    ports-mgmt/rc-subr-jail: Fix jail_copy_programs handler.
    
    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 40bca73902ef..8569189f5651 100644
--- a/ports-mgmt/rc-subr-jail/Makefile
+++ b/ports-mgmt/rc-subr-jail/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	rc-subr-jail
-PORTVERSION=	1
+PORTVERSION=	2
 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 8dc5271405b3..f91fe7ddf8fa 100644
--- a/ports-mgmt/rc-subr-jail/files/rc.subr.jail
+++ b/ports-mgmt/rc-subr-jail/files/rc.subr.jail
@@ -65,7 +65,7 @@ prepare_jail()
 
         _interp=$(file "$_prog" | grep -o '/libexec/ld-elf.so[0-9\.]*')
         if [ "$_interp" ]; then
-            mkdir "$jroot/libexec"
+            mkdir -p "$jroot/libexec"
             cp "$_interp" "$jroot/libexec/"
         fi
     done