1
0
mirror of synced 2026-03-14 15:36:56 +00:00

Merge pull request #1219 from frankgu968/main

fix: install command flags logic bug
This commit is contained in:
Hidde Beydals
2021-04-06 17:13:06 +02:00
committed by GitHub

View File

@@ -176,15 +176,15 @@ func installCmdRun(cmd *cobra.Command, args []string) error {
return fmt.Errorf("install failed: %w", err)
}
if rootArgs.verbose {
fmt.Print(manifest.Content)
} else if installArgs.export {
if installArgs.export {
fmt.Println("---")
fmt.Println("# Flux version:", installArgs.version)
fmt.Println("# Components:", strings.Join(components, ","))
fmt.Print(manifest.Content)
fmt.Println("---")
return nil
} else if rootArgs.verbose {
fmt.Print(manifest.Content)
}
logger.Successf("manifests build completed")