Skip to content

Commit 5e6e190

Browse files
committed
fix: check against path not name for templates
1 parent 9309438 commit 5e6e190

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/templates/contents.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func (d *downloader) Names() ([]string, error) {
8282

8383
func (d *downloader) Get(name string) *TemplateInfo {
8484
for _, ti := range d.repo {
85-
if ti.Name == name {
85+
if ti.Path == name {
8686
return &ti
8787
}
8888
}

0 commit comments

Comments
 (0)