mirror of
https://github.com/restic/restic.git
synced 2024-06-28 08:00:52 +02:00
Fix 'dump' command
This commit is contained in:
parent
86fcd170f6
commit
7ab9915859
|
@ -144,8 +144,6 @@ func (cmd CmdDump) Execute(args []string) error {
|
||||||
tpe := args[0]
|
tpe := args[0]
|
||||||
|
|
||||||
switch tpe {
|
switch tpe {
|
||||||
case "index":
|
|
||||||
return repo.Index().Dump(os.Stdout)
|
|
||||||
case "indexes":
|
case "indexes":
|
||||||
return cmd.DumpIndexes()
|
return cmd.DumpIndexes()
|
||||||
case "snapshots":
|
case "snapshots":
|
||||||
|
@ -172,13 +170,6 @@ func (cmd CmdDump) Execute(args []string) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Printf("\nindex:\n")
|
|
||||||
|
|
||||||
err = repo.Index().Dump(os.Stdout)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
default:
|
default:
|
||||||
return errors.Errorf("no such type %q", tpe)
|
return errors.Errorf("no such type %q", tpe)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user