From c8bb688e2676a4e2bbabfc01e2132573e010a8cb Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Mon, 6 Jul 2015 22:26:31 +0200 Subject: [PATCH] Command `snapshots`: do not list first dir twice --- cmd/restic/cmd_snapshots.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/restic/cmd_snapshots.go b/cmd/restic/cmd_snapshots.go index 38e2046ad..52b486267 100644 --- a/cmd/restic/cmd_snapshots.go +++ b/cmd/restic/cmd_snapshots.go @@ -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}) } }