Remove unnecessary subshell from 'date' evaluation

If this 'date' is MacPorts then it will fall throught to:

  * This *is* the bottom-line, "date-wise": Ubuntu or busybox.

Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
Richard T Bonhomme 2022-06-11 02:08:02 +01:00
parent 8c1ac0c800
commit 9e3fe4791f
No known key found for this signature in database
GPG Key ID: 2D767DB92FB6C246

View File

@ -2965,15 +2965,7 @@ The fixed date will be rolled backward by one year."
)"
# Darwin, BSD
elif (
case "$easyrsa_uname" in
(Darwin|*BSD)
# Not MacPorts GNU date
date -j && return
esac
return 1
)
then
elif date -j > /dev/null 2>&1; then
this_year_n="$(date -j +%y)"
today_n="$(date -u -j +%j)"
@ -2990,8 +2982,8 @@ The fixed date will be rolled backward by one year."
fi
New_Year_day_d="$(
date -u -j -f '%y%m%d%H%M%S' "${this_year_n}0101000001" \
'+%Y%m%d%H%M.%SZ'
date -u -j -f %y%m%d%H%M%S "${this_year_n}0101000001" \
+%Y%m%d%H%M.%SZ
)"
# Convert to date-stamps for SSL input