zdate: fix early dates breaking

This commit is contained in:
zawz 2020-10-23 09:58:23 +02:00
parent 0ed3457799
commit 6ed26f261b

View file

@ -32,7 +32,7 @@ shift $((OPTIND-1))
targets="."
[ $# -gt 0 ] && targets="$*"
ret=$(find $targets -printf '%T@\n' | sort | tail -n1 | cut -d'.' -f1)
ret=$(find $targets -printf '%T@\n' | sort -n | tail -n1 | cut -d'.' -f1)
if [ -z "$_opt_s" ]
then