Feat cronjob #23
@@ -5,7 +5,6 @@ import (
|
||||
"katenary/generator/writers"
|
||||
"katenary/helm"
|
||||
"katenary/update"
|
||||
"log"
|
||||
"strconv"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
@@ -71,7 +70,6 @@ func main() {
|
||||
if err != nil {
|
||||
writers.IndentSize = indentation
|
||||
}
|
||||
log.Println(composeFiles)
|
||||
Convert(*composeFiles, appversion, appName, chartDir, chartVersion, force)
|
||||
},
|
||||
}
|
||||
|
@@ -99,15 +99,13 @@ func Convert(composeFile []string, appVersion, appName, chartDir, chartVersion s
|
||||
return
|
||||
}
|
||||
|
||||
for i, c := range composeFile {
|
||||
composeFile[i] = strings.TrimSpace(c)
|
||||
}
|
||||
composeFiles := composeFile
|
||||
ComposeFile = composeFiles[0]
|
||||
|
||||
for _, composeFile := range composeFiles {
|
||||
_, err := os.Stat(composeFile)
|
||||
if err != nil {
|
||||
fmt.Println("Error reading file:", composeFile)
|
||||
os.Exit(1)
|
||||
for _, cf := range composeFiles {
|
||||
if _, err := os.Stat(cf); err != nil {
|
||||
fmt.Printf("Compose file %s not found\n", cf)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user