From 271dcc5332ef07f1b9ff895d1b968557be2783ae Mon Sep 17 00:00:00 2001 From: Miguel Mendoza Date: Thu, 2 May 2024 13:03:34 -0700 Subject: [PATCH] bug: fix logic to pick latest release If there are no stable releases, it should pick the most recent unstable one and choose it as the "latest". --- install | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install b/install index 6dc7ce0..ab49d88 100755 --- a/install +++ b/install @@ -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