mirror of
https://github.com/octoleo/restic.git
synced 2024-11-30 00:33:57 +00:00
Correct string for catting data blobs
This commit is contained in:
parent
1c0e76ccd6
commit
5257c54585
@ -23,7 +23,7 @@ func init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (cmd CmdCat) Usage() string {
|
func (cmd CmdCat) Usage() string {
|
||||||
return "[blob|tree|snapshot|key|lock] ID"
|
return "[data|tree|snapshot|key|lock] ID"
|
||||||
}
|
}
|
||||||
|
|
||||||
func (cmd CmdCat) Execute(args []string) error {
|
func (cmd CmdCat) Execute(args []string) error {
|
||||||
@ -54,7 +54,7 @@ func (cmd CmdCat) Execute(args []string) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
switch tpe {
|
switch tpe {
|
||||||
case "blob":
|
case "data":
|
||||||
// try storage id
|
// try storage id
|
||||||
data, err := s.LoadID(backend.Data, id)
|
data, err := s.LoadID(backend.Data, id)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user