From be93f45f1eed9e1d85b92ddfb0adf60ba55039be Mon Sep 17 00:00:00 2001 From: Eric F Crist Date: Mon, 4 Feb 2019 13:24:35 -0600 Subject: [PATCH] No uname on Windows Since there's no uname command on Windows, send STDERR to /dev/null. This just prevents an error from showing on the console but doesn't actually change any system behavior. Signed-off-by: Eric F Crist --- easyrsa3/easyrsa | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index 2de1e3e..e019982 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -1010,7 +1010,7 @@ at: $crt_in" "$EASYRSA_OPENSSL" x509 -in "$crt_in" -noout -enddate | sed 's/^notAfter=//' ) - case $(uname) in + case $(uname 2>/dev/null) in "Darwin"|*"BSD") expire_date=$(date -j -f '%b %d %T %Y %Z' "$expire_date" +%s) allow_renew_date=$(date -j -v"+${EASYRSA_CERT_RENEW}d" +%s)