Correct 'date' for Darwin/*BSD: "${days}days" -> "${days}d"

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

View File

@ -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