From dbb851736a0598a4e0ba8563b122eea7dacac396 Mon Sep 17 00:00:00 2001 From: Richard T Bonhomme Date: Tue, 1 Nov 2022 22:52:48 +0000 Subject: [PATCH] print_version(): Redirect stderr for "openssl" call Squashed commit of the following: commit 6ed16cd3860a1cf155c48809d11b55101ff66224 Merge: 4472516 94f6402 Author: Richard T Bonhomme Date: Tue Nov 1 22:51:33 2022 +0000 Merge branch 'redir-stderr-version' of ssh://github.com/TinCanTech/easy-rsa into TinCanTech-redir-stderr-version Signed-off-by: Richard T Bonhomme commit 94f6402c64b9d11da34c93d06b62a00b2ad2fe40 Author: Richard T Bonhomme Date: Tue Nov 1 20:51:26 2022 +0000 print_version(): Redirect stderr for "openssl" call This redirects stderr message generated by missing config file, specifically for LibreSSL. Signed-off-by: Richard T Bonhomme Signed-off-by: Richard T Bonhomme --- easyrsa3/easyrsa | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index 8909977..303534f 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -4857,7 +4857,7 @@ return 0 print_version() { - ssl_version="$("${EASYRSA_OPENSSL:-openssl}" version)" + ssl_version="$("${EASYRSA_OPENSSL:-openssl}" version 2>/dev/null)" cat << VERSION_TEXT EasyRSA Version Information Version: $EASYRSA_version