Skip to content

Commit

Permalink
chore: fix latest install to cater for existing users who installed u…
Browse files Browse the repository at this point in the history
…sing '-s latest' (#3513)
  • Loading branch information
herman26 committed Jan 28, 2023
1 parent d57156e commit 52e2f93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ http_copy() {
github_release() {
owner_repo=$1
version=$2
if [ -z "$version" ]; then
if [ -z "$version" ] || [ "$version" = "latest" ]; then
giturl="https://api.github.com/repos/${owner_repo}/releases/latest"
else
giturl="https://api.github.com/repos/${owner_repo}/releases/tags/${version}"
Expand Down

0 comments on commit 52e2f93

Please sign in to comment.