# This means I get the right tag if I finish after midnight
d=$(date --date "5 hours ago" '+%Y%m%d')
-l="$(git describe --match "v*" --abbrev=0)"
+l=$(git tag -l --sort=taggerdate 'v*' | tail -n 1)
n="next-$d"
mkdir Next
while read email type name url ref build; do
[ "$type" = "branch" ] && continue
tab="\t"
- [ ${#name} -le 8 ] && tab="\t\t"
+ [ ${#name} -lt 8 ] && tab="\t\t"
[ "$type" = "git" ] && url="$url#${ref##*:}"
printf "%s$tab%s\t%s\n" $name $type $url
done