improve searching datetime function

This commit is contained in:
Morgan Wattiez 2019-08-04 14:53:30 +02:00
parent d4a026b397
commit 24bedd3a70

View File

@ -78,5 +78,5 @@ function istherenewissues() {
echo "$LASTISSUE" > .newjiraissue
}
function greppagedate() {
curl -sSL "$*" | \grep datetime | \grep -Eo '[[:digit:]]{4}' | head -n1
curl -sSL "$*" | \grep datetime | \grep -Eo '[[:digit:]]{4}' | sort -n | head -n1
}