mirror of
https://github.com/restic/restic.git
synced 2025-05-23 12:18:22 +00:00
Merge pull request #2039 from restic/fix-2038
snapshots: Don't print empty line for --compact
This commit is contained in:
commit
afde60e433
@ -195,7 +195,7 @@ func PrintSnapshots(stdout io.Writer, list restic.Snapshots, reasons []restic.Ke
|
|||||||
data.Reasons = keepReasons[*id].Matches
|
data.Reasons = keepReasons[*id].Matches
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(sn.Paths) > 1 {
|
if len(sn.Paths) > 1 && !compact {
|
||||||
multiline = true
|
multiline = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user