Skip to content

Commit 3066f74

Browse files
herman26SeigeC
authored andcommitted
chore: fix latest install to cater for existing users who installed using '-s latest' (golangci#3513)
1 parent d75be00 commit 3066f74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install.sh

Lines changed: 1 addition & 1 deletion
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)