forked from TrueCloudLab/restic
Merge pull request #858 from middelink/snapshot-layout
Fix layout issue in cmd_snapshot "ascii art"
This commit is contained in:
commit
bf88a62a16
1 changed files with 3 additions and 0 deletions
|
@ -127,6 +127,9 @@ func printSnapshotsReadable(stdout io.Writer, list []*restic.Snapshot) {
|
||||||
}
|
}
|
||||||
|
|
||||||
rows := len(sn.Paths)
|
rows := len(sn.Paths)
|
||||||
|
if rows < len(sn.Tags) {
|
||||||
|
rows = len(sn.Tags)
|
||||||
|
}
|
||||||
|
|
||||||
treeElement := " "
|
treeElement := " "
|
||||||
if rows != 1 {
|
if rows != 1 {
|
||||||
|
|
Loading…
Add table
Reference in a new issue