Merge pull request #11 from log2/master

Added latest-stable script in order to reliably return actual latest version
This commit is contained in:
R. Francis Smith 2022-07-22 09:02:12 -05:00 committed by GitHub
commit 4adbc6f468
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

6
bin/latest-stable Executable file
View File

@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -euo pipefail
query="${1:-}"
asdf list all gradle "$query" | grep -ivE "(^Available version:|-src|-dev|-latest|-stm|[-\\.]rc|-milestone|-alpha|-beta|[-\\.]pre|-next|(a|b|c)[0-9]+|snapshot|master)" | sed 's/^[[:space:]]\+//' | tail -1