Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Dec 26, 2024
1 parent 042ae24 commit ed71852
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions transport/gh.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ func (t *Gh) Tags(repo string, out, progress io.Writer) error {
}

func (t *Gh) Assets(repo, tag string, out, progress io.Writer) error {
args := []string{"api", fmt.Sprintf("https://api.github.com/repos/%v/releases/tags/%v", repo, tag)}
args := []string{"api", fmt.Sprintf("repos/%v/releases/tags/%v", repo, tag)}
return t.retrieve(args, out, progress)
}

func (t *Gh) Download(repo, tag, asset string, out, progress io.Writer) error {
args := []string{"gh", "release", "download", "--repo", repo, tag, "--pattern", asset, "--output", "-"}
args := []string{"release", "download", "--repo", repo, tag, "--pattern", asset, "--output", "-"}
return t.retrieve(args, out, progress)
}

0 comments on commit ed71852

Please sign in to comment.