diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2021-11-12 10:29:13 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2021-11-12 12:05:31 +0100 |
commit | 5f3f60898cfe1c087841ec1fbd5ddc2916d0a2c6 (patch) | |
tree | da8e1bdc14a8086cf4075b30b279dba47cea8961 /create/content.go | |
parent | 057d02de256a3866b7044abaa4d03c69d9fedef0 (diff) |
create: Improve archetype directory discovery and tests
Updates #9146
Diffstat (limited to 'create/content.go')
-rw-r--r-- | create/content.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/create/content.go b/create/content.go index 52393ce5b..524803d36 100644 --- a/create/content.go +++ b/create/content.go @@ -252,7 +252,8 @@ func (b *contentBuilder) setArcheTypeFilenameToUse(ext string) { if b.kind != "" { pathsToCheck = append(pathsToCheck, b.kind+ext) } - pathsToCheck = append(pathsToCheck, "default"+ext, "default") + + pathsToCheck = append(pathsToCheck, "default"+ext) for _, p := range pathsToCheck { fi, err := b.archeTypeFs.Stat(p) |