mirror of
https://github.com/mudler/luet.git
synced 2025-09-04 00:34:41 +00:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
585b72c3d0 | ||
|
f7aa6c3428 |
@@ -41,7 +41,7 @@ var Verbose bool
|
|||||||
var LockedCommands = []string{"install", "uninstall", "upgrade"}
|
var LockedCommands = []string{"install", "uninstall", "upgrade"}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
LuetCLIVersion = "0.17.12"
|
LuetCLIVersion = "0.17.13"
|
||||||
LuetEnvPrefix = "LUET"
|
LuetEnvPrefix = "LUET"
|
||||||
license = `
|
license = `
|
||||||
Luet Copyright (C) 2019-2021 Ettore Di Giacinto
|
Luet Copyright (C) 2019-2021 Ettore Di Giacinto
|
||||||
|
@@ -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
|
// TemplateFolders returns the default folders which holds shared template between packages in a given tree path
|
||||||
func TemplateFolders(fromRepo bool, treePaths []string) []string {
|
func TemplateFolders(fromRepo bool, treePaths []string) []string {
|
||||||
templateFolders := []string{}
|
templateFolders := []string{}
|
||||||
if !fromRepo {
|
for _, t := range treePaths {
|
||||||
for _, t := range treePaths {
|
templateFolders = append(templateFolders, filepath.Join(t, "templates"))
|
||||||
templateFolders = append(templateFolders, filepath.Join(t, "templates"))
|
}
|
||||||
}
|
if fromRepo {
|
||||||
} else {
|
|
||||||
for _, s := range installer.SystemRepositories(LuetCfg) {
|
for _, s := range installer.SystemRepositories(LuetCfg) {
|
||||||
templateFolders = append(templateFolders, filepath.Join(s.TreePath, "templates"))
|
templateFolders = append(templateFolders, filepath.Join(s.TreePath, "templates"))
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user