Update ocis/pkg/command/trash.go
Co-authored-by: kobergj <juliankoberg@googlemail.com>
This commit is contained in:
committed by
Christian Richter
co-authored by
kobergj
parent
707199ce99
commit
97fe0b06fb
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user