From 4aadfe3def3c5933c155a7ba6d132cf3e5165a1d Mon Sep 17 00:00:00 2001 From: Marvin Preuss Date: Fri, 20 Aug 2021 13:22:45 +0200 Subject: [PATCH] only warns about missing config if its not there --- cmd/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/root.go b/cmd/root.go index 72b169c..e43f3bb 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -115,7 +115,7 @@ func initConfig(fatal bool) { // Parse config file. if cfgFile == "" && fatal { logger.Fatal().Msg("missing config file") - } else { + } else if cfgFile == "" { logger.Warn().Msg("missing config file") }