From 74355a22924c377dd4f51601c786ce852ca01b94 Mon Sep 17 00:00:00 2001 From: mlsmaycon Date: Sun, 20 Jun 2021 23:33:49 +0200 Subject: [PATCH] fix windows default config path --- cmd/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/root.go b/cmd/root.go index bb7be2afb..6f0c6d462 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", "")