Don't dump blank entry for backup dir if not set

pull/5586/head
Philip O'Toole 2016-02-08 23:25:58 -08:00
parent d2908def07
commit 3c1cbe0ea7
1 changed files with 3 additions and 1 deletions

View File

@ -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))