Skip to content

Commit

Permalink
bug: fix logic to pick latest release
Browse files Browse the repository at this point in the history
If there are no stable releases, it should pick the most recent
unstable one and choose it as the "latest".
  • Loading branch information
micovery committed May 2, 2024
1 parent 37fd642 commit 271dcc5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion install
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ sortSemver() {
pickLatestRelease() {
local first=""
while read version; do
first="${version}"
if [[ -z "${first}" ]] ; then
first="${version}"
fi
if [[ "${version}" != *"-"* ]] ; then
echo "${version}"
return
Expand Down

0 comments on commit 271dcc5

Please sign in to comment.