mirror of
https://github.com/mudler/luet.git
synced 2025-07-31 06:50:21 +00:00
fix: always append templates from tree path
Otherwise shared templates from trees are not working when --from-repositories is enabled.
This commit is contained in:
parent
2970d8e52e
commit
f7aa6c3428
@ -96,11 +96,10 @@ func SetCliFinalizerEnvs(finalizerEnvs []string) error {
|
||||
// TemplateFolders returns the default folders which holds shared template between packages in a given tree path
|
||||
func TemplateFolders(fromRepo bool, treePaths []string) []string {
|
||||
templateFolders := []string{}
|
||||
if !fromRepo {
|
||||
for _, t := range treePaths {
|
||||
templateFolders = append(templateFolders, filepath.Join(t, "templates"))
|
||||
}
|
||||
} else {
|
||||
for _, t := range treePaths {
|
||||
templateFolders = append(templateFolders, filepath.Join(t, "templates"))
|
||||
}
|
||||
if fromRepo {
|
||||
for _, s := range installer.SystemRepositories(LuetCfg) {
|
||||
templateFolders = append(templateFolders, filepath.Join(s.TreePath, "templates"))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user