mirror of
https://github.com/kopia/kopia.git
synced 2026-10-22 06:04:47 -04:00
Fix bug that empty log directories are created on any command with --help argument (#753)
This commit is contained in:
1 parent
207009939f
commit
60aec0ee9f
1 file changed
+4
@@ -57,6 +57,10 @@ const (
|
||||
|
||||
// Initialize is invoked as part of command execution to create log file just before it's needed.
|
||||
func Initialize(ctx *kingpin.ParseContext) error {
|
||||
if *logDir == "" {
|
||||
return nil
|
||||
}
|
||||
|
||||
now := clock.Now()
|
||||
|
||||
suffix := "unknown"
|
||||
|
||||
Reference in new issue
Block a user