mirror of
https://github.com/kopia/kopia.git
synced 2026-07-28 22:36:41 -04:00
Fix bug that empty log directories are created on any command with --help argument (#753)
This commit is contained in:
@@ -57,6 +57,10 @@
|
||||
|
||||
// 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