From a11ddefe5d121d1eddd1be1097c72dd11d13407e Mon Sep 17 00:00:00 2001 From: Richard T Bonhomme Date: Sat, 11 Jun 2022 11:15:40 +0100 Subject: [PATCH] Correct 'date' for Darwin/*BSD: "${days}days" -> "${days}d" 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 3efd4b5..c34257e 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -3099,7 +3099,7 @@ offset_days_to_cert_date() { # Darwin, BSD elif cert_type_date="$( - date -u -j -v "+${offset}days" "+%b %d %H:%M:%S %Y %Z" \ + date -u -j -v "+${offset}d" "+%b %d %H:%M:%S %Y %Z" \ 2>/dev/null )" then return