From 3c1cbe0ea737f632967d35ae468f790c66d36b0b Mon Sep 17 00:00:00 2001 From: Philip O'Toole Date: Mon, 8 Feb 2016 23:25:58 -0800 Subject: [PATCH] Don't dump blank entry for backup dir if not set --- cmd/influx_tsm/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/influx_tsm/main.go b/cmd/influx_tsm/main.go index 51bbd03091..3964ad445f 100644 --- a/cmd/influx_tsm/main.go +++ b/cmd/influx_tsm/main.go @@ -171,7 +171,9 @@ func main() { fmt.Println("b1 and bz1 shard conversion.") fmt.Println("-----------------------------------") fmt.Println("Data directory is: ", opts.DataPath) - fmt.Println("Backup directory is: ", opts.BackupPath) + if !opts.SkipBackup { + fmt.Println("Backup directory is: ", opts.BackupPath) + } fmt.Println("Databases specified: ", allDBs(opts.DBs)) fmt.Println("Database backups enabled: ", yesno(!opts.SkipBackup), badUser) fmt.Printf("Parallel mode enabled (GOMAXPROCS): %s (%d)\n", yesno(opts.Parallel), runtime.GOMAXPROCS(0))