diff --git a/cmd/root.go b/cmd/root.go index bb7be2afb1e..6f0c6d4621c 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -33,7 +33,7 @@ func Execute() error { func init() { defaultConfigPath = "/etc/wiretrustee/config.json" if runtime.GOOS == "windows" { - defaultConfigPath = os.Getenv("PROGRAMDATA") + "Wiretrustee" + "config.json" + defaultConfigPath = os.Getenv("PROGRAMDATA") + "\\Wiretrustee\\" + "config.json" } rootCmd.PersistentFlags().StringVar(&configPath, "config", defaultConfigPath, "Wiretrustee config file location to write new config to") rootCmd.PersistentFlags().StringVar(&logLevel, "log-level", "info", "")