Skip to content

Commit

Permalink
fix(download): consider if a template specifies a sub directory (iyea…
Browse files Browse the repository at this point in the history
  • Loading branch information
brimstone authored Feb 14, 2024
1 parent 150d93e commit 56e4812
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/dl/progress.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func (p *progress) donePost(elem *iterElem) error {
}
}

if err := os.Rename(elem.to.Name(), filepath.Join(p.opts.Dir, newfile)); err != nil {
if err := os.Rename(elem.to.Name(), filepath.Join(filepath.Dir(elem.to.Name()), newfile)); err != nil {
return errors.Wrap(err, "rename file")
}

Expand Down

0 comments on commit 56e4812

Please sign in to comment.