From 474f849ef17962ae5f355c8981e280a4ab83a40d Mon Sep 17 00:00:00 2001 From: Richard T Bonhomme Date: Tue, 14 May 2024 23:54:32 +0100 Subject: [PATCH] sign-req with SAN: Add POSIX related comment for 'grep -A' use Signed-off-by: Richard T Bonhomme --- easyrsa3/easyrsa | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index bd996fa15..51f8edc0e 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -2539,10 +2539,11 @@ Forced subject= grep -s 'X509v3 Subject Alternative Name' then # extract requested SAN + # 'grep -A' may not be strictly POSIX, die on error req_x509_san="$( echo "$req_text" | \ grep -A 1 'X509v3 Subject Alternative Name' - )" || die "sign-req: req_x509_san: grep -A 1 " + )" || die "sign-req: req_x509_san: grep -A 1 (POSIX)" else # No requested SAN req_x509_san=