~moviuro/factorio-dl

beb887313689ccfa19dd927a007afd423a7acdda — Moviuro 5 months ago 8cac9e3 0.2.1
factorio-dl: sort -V, not sort -n

Not POSIX, but on FreeBSD, OpenBSD, macOS, GNU and probably WSL.
1 files changed, 1 insertions(+), 1 deletions(-)

M factorio-dl
M factorio-dl => factorio-dl +1 -1
@@ 155,7 155,7 @@ case "$version" in
      version="$(curl -s \
       "${_up_url}?username=${FACTORIO_LOGIN}&token=${FACTORIO_TOKEN}" |
       jq -rc '."core-linux64"[]."to" | if . == null then empty else . end' |
       sort -n | tail -1
       sort -V | tail -1
      )"
      __warn "Got $version"
    fi