aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_fs_rm.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/shell/command_fs_rm.go')
-rw-r--r--weed/shell/command_fs_rm.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/weed/shell/command_fs_rm.go b/weed/shell/command_fs_rm.go
index ec29cced9..b8445b7e9 100644
--- a/weed/shell/command_fs_rm.go
+++ b/weed/shell/command_fs_rm.go
@@ -37,10 +37,10 @@ func (c *commandFsRm) Help() string {
func (c *commandFsRm) Do(args []string, commandEnv *CommandEnv, writer io.Writer) (err error) {
isRecursive := false
ignoreRecursiveError := false
- var entiries []string
+ var entries []string
for _, arg := range args {
if !strings.HasPrefix(arg, "-") {
- entiries = append(entiries, arg)
+ entries = append(entries, arg)
continue
}
for _, t := range arg {
@@ -52,12 +52,12 @@ func (c *commandFsRm) Do(args []string, commandEnv *CommandEnv, writer io.Writer
}
}
}
- if len(entiries) < 1 {
+ if len(entries) < 1 {
return fmt.Errorf("need to have arguments")
}
commandEnv.WithFilerClient(false, func(client filer_pb.SeaweedFilerClient) error {
- for _, entry := range entiries {
+ for _, entry := range entries {
targetPath, err := commandEnv.parseUrl(entry)
if err != nil {
fmt.Fprintf(writer, "rm: %s: %v\n", targetPath, err)