1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-23 00:07:25 +00:00

Command snapshots: do not list first dir twice

This commit is contained in:
Alexander Neumann 2015-07-06 22:26:31 +02:00
parent de5a530d2a
commit c8bb688e26

View file

@ -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]})
if len(sn.Paths) > 1 {
for _, path := range sn.Paths {
for _, path := range sn.Paths[1:] {
tab.Rows = append(tab.Rows, []interface{}{"", "", "", path})
}
}