Skip to content

Commit

Permalink
ci: Retry ci
Browse files Browse the repository at this point in the history
  • Loading branch information
threkk committed Jul 23, 2021
1 parent 29369db commit cbf0c71
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bin/latest-stable
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ source "${plugin_dir}/lib/utils.bash"

# TODO: Remove this once age has a release version that does not conflict with age
# https://github.com/asdf-vm/asdf/issues/763
list_all_versions | sort_versions | tail -n1 | xargs echo
latest_version "$@"
7 changes: 7 additions & 0 deletions lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ list_all_versions() {
list_github_tags
}

latest_version() {
local query
query="$1"
[ -z "$query" ] && query="[0-9]"
list_all_versions | sort_versions | grep "$query" | tail -n 1
}

download_release() {
local version filename url
version="$1"
Expand Down

0 comments on commit cbf0c71

Please sign in to comment.