Update ocis/pkg/command/trash.go

Co-authored-by: kobergj <juliankoberg@googlemail.com>
This commit is contained in:
Christian Richter
2024-06-27 17:15:11 +02:00
committed by Christian Richter
co-authored by kobergj
parent 707199ce99
commit 97fe0b06fb
+1 -1
View File
@@ -49,7 +49,7 @@ func TrashPurgeOrphanedDirsCommand(cfg *config.Config) *cli.Command {
basePath := c.String("basepath") basePath := c.String("basepath")
if basePath == "" { if basePath == "" {
fmt.Println("basepath is required") fmt.Println("basepath is required")
return cli.ShowCommandHelp(c, "consistency") return cli.ShowCommandHelp(c, "trash")
} }
if err := trash.PurgeTrashOrphanedPaths(basePath, c.Bool("dry-run")); err != nil { if err := trash.PurgeTrashOrphanedPaths(basePath, c.Bool("dry-run")); err != nil {