Skip to content

Commit 52e2f93

Browse files
authored
chore: fix latest install to cater for existing users who installed using '-s latest' (#3513)
1 parent d57156e commit 52e2f93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ http_copy() {
317317
github_release() {
318318
owner_repo=$1
319319
version=$2
320-
if [ -z "$version" ]; then
320+
if [ -z "$version" ] || [ "$version" = "latest" ]; then
321321
giturl="https://api.github.com/repos/${owner_repo}/releases/latest"
322322
else
323323
giturl="https://api.github.com/repos/${owner_repo}/releases/tags/${version}"

0 commit comments

Comments
 (0)