From 886a5d4d827f9466e8a41f460bb9b7f2247f5247 Mon Sep 17 00:00:00 2001 From: "David J. Allen" Date: Fri, 10 May 2024 13:46:51 -0600 Subject: [PATCH] Fixed default output path for flag --- cmd/collect.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/collect.go b/cmd/collect.go index 7c26c32..4b2c402 100644 --- a/cmd/collect.go +++ b/cmd/collect.go @@ -77,7 +77,7 @@ func init() { collectCmd.PersistentFlags().StringVar(&username, "user", "", "set the BMC user") collectCmd.PersistentFlags().StringVar(&password, "pass", "", "set the BMC password") collectCmd.PersistentFlags().StringVar(&protocol, "protocol", "https", "set the protocol used to query") - collectCmd.PersistentFlags().StringVarP(&outputPath, "output", "o", fmt.Sprintf("/tmp/%smagellan/data/", currentUser.Username), "set the path to store collection data") + collectCmd.PersistentFlags().StringVarP(&outputPath, "output", "o", fmt.Sprintf("/tmp/%smagellan/data/", currentUser.Username+"/"), "set the path to store collection data") collectCmd.PersistentFlags().BoolVar(&forceUpdate, "force-update", false, "set flag to force update data sent to SMD") collectCmd.PersistentFlags().StringVar(&cacertPath, "ca-cert", "", "path to CA cert. (defaults to system CAs)")