mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-28 22:28:43 -04:00
chore: fix latest install to cater for existing users who installed using '-s latest' (#3513)
This commit is contained in:
parent
d57156ec22
commit
52e2f9338e
1 changed files with 1 additions and 1 deletions
|
@ -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}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue