We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ece1e4 commit 36bc08cCopy full SHA for 36bc08c
1 file changed
testssl.sh
@@ -475,10 +475,14 @@ HAS_GNUDATE=false
475
HAS_FREEBSDDATE=false
476
HAS_OPENBSDDATE=false
477
if date -d @735275209 >/dev/null 2>&1; then
478
- if date -r @735275209 >/dev/null 2>&1; then
+ if date -r 735275209 >/dev/null 2>&1; then
479
# It can't do any conversion from a plain date output.
480
HAS_OPENBSDDATE=true
481
- else
+ elif date -r 735275209 2>&1 | grep -q "No such file"; then
482
+ # e.g. Debian 24.04, Debian 11-13
483
+ HAS_GNUDATE=true
484
+ elif date -r @735275209 >/dev/null 2>&1; then
485
+ # Ubuntu >= 25.10
486
HAS_GNUDATE=true
487
fi
488
0 commit comments