mirror of
https://github.com/octoleo/restic.git
synced 2024-11-26 23:06:32 +00:00
Merge pull request #216 from restic/fix-215
Command `snapshots`: do not list first dir twice
This commit is contained in:
commit
cbe4c92c83
@ -145,7 +145,7 @@ func (cmd CmdSnapshots) Execute(args []string) error {
|
|||||||
tab.Rows = append(tab.Rows, []interface{}{sn.ID()[:plen/2], sn.Time.Format(TimeFormat), sn.Hostname, sn.Paths[0]})
|
tab.Rows = append(tab.Rows, []interface{}{sn.ID()[:plen/2], sn.Time.Format(TimeFormat), sn.Hostname, sn.Paths[0]})
|
||||||
|
|
||||||
if len(sn.Paths) > 1 {
|
if len(sn.Paths) > 1 {
|
||||||
for _, path := range sn.Paths {
|
for _, path := range sn.Paths[1:] {
|
||||||
tab.Rows = append(tab.Rows, []interface{}{"", "", "", path})
|
tab.Rows = append(tab.Rows, []interface{}{"", "", "", path})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user