Fix dates order in list-versions.sh

This commit is contained in:
alesapin 2020-08-27 17:42:49 +03:00
parent 7bf83990ae
commit 7e0b7e601d

View File

@ -1,3 +1,3 @@
#!/bin/bash
git tag --list | grep -P 'v.+-(stable|lts)' | sort -V | xargs git show --format='%ai' | awk '/^v/ { version = $1 } /^[0-9]+/ { date = $1 } { if (version && date) { print version "\t" date; version = ""; date = ""; } }' | tac
git tag --list | grep -P 'v.+-(stable|lts)' | sort -V | xargs git show --format='%ai' | awk '/^v/ { version = $1 } /^[0-9]+/ { if (version) { date = $1 } } { if (version && date) { print version "\t" date; version = ""; date = ""; } }' | tac