mirror of
https://github.com/rfrancis/asdf-gradle.git
synced 2024-10-05 13:12:08 +08:00
Merge pull request #11 from log2/master
Added latest-stable script in order to reliably return actual latest version
This commit is contained in:
commit
4adbc6f468
6
bin/latest-stable
Executable file
6
bin/latest-stable
Executable 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
|
Loading…
Reference in New Issue
Block a user