Browse Source

fix weed fuse parameters parsing

pull/2178/head
danielflira 4 years ago
parent
commit
586e066897
  1. 2
      weed/command/fuse.go

2
weed/command/fuse.go

@ -55,7 +55,7 @@ func runFuse(cmd *Command, args []string) bool {
name := option.String() name := option.String()
option.Reset() option.Reset()
for i++; i < rawArgsLen && rawArgs[i] != ','; i++ {
for i++; i < rawArgsLen && rawArgs[i] != ',' && rawArgs[i] != ' '; i++ {
// double quote separator read option until next double quote // double quote separator read option until next double quote
if rawArgs[i] == '"' { if rawArgs[i] == '"' {
for i++; i < rawArgsLen && rawArgs[i] != '"'; i++ { for i++; i < rawArgsLen && rawArgs[i] != '"'; i++ {

Loading…
Cancel
Save