Skip to content

Commit

Permalink
fix(api): download windows (#4259)
Browse files Browse the repository at this point in the history
Signed-off-by: Yvonnick Esnault <yvonnick.esnault@corp.ovh.com>
  • Loading branch information
yesnault authored May 6, 2019
1 parent 84f4024 commit 22e3fa4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sdk/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ func GetArtifactFilename(name, os, arch, variant string) string {
if name == "cdsctl" {
prefix = ""
}
return fmt.Sprintf("%s%s-%s-%s%s", prefix, name, os, getArchName(arch), variant)
var suffix string
if os == "windows" {
suffix = ".exe"
}
return fmt.Sprintf("%s%s-%s-%s%s%s", prefix, name, os, getArchName(arch), variant, suffix)
}

// AllDownloadableResourcesWithAvailability set flag Available on downloads list
Expand Down

0 comments on commit 22e3fa4

Please sign in to comment.