2
2
mirror of https://github.com/octoleo/restic.git synced 2024-06-04 18:10:50 +00:00

Merge pull request #2039 from restic/fix-2038

snapshots: Don't print empty line for --compact
This commit is contained in:
Alexander Neumann 2018-10-13 21:24:26 +02:00
commit afde60e433

View File

@ -195,7 +195,7 @@ func PrintSnapshots(stdout io.Writer, list restic.Snapshots, reasons []restic.Ke
data.Reasons = keepReasons[*id].Matches
}
if len(sn.Paths) > 1 {
if len(sn.Paths) > 1 && !compact {
multiline = true
}