From 7ebb69fdd25b34765cfcf69dd353444cf6decb38 Mon Sep 17 00:00:00 2001 From: Kenneth Date: Mon, 2 Dec 2024 22:37:15 +0000 Subject: [PATCH] fix: config path detected incorrectly --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 63f4f99..01af131 100644 --- a/main.go +++ b/main.go @@ -31,7 +31,7 @@ func main() { } var configPath string - flag.StringVar(&configPath, "config", filepath.Join(execPath, "config.json"), "absolute/relative path to the config file.") + flag.StringVar(&configPath, "config", filepath.Join(filepath.Dir(execPath), "config.json"), "absolute/relative path to the config file.") flag.Parse()