Browse Source
Merge pull request #2178 from danielflira/master
fix weed fuse parameters parsing
pull/2182/head
Chris Lu
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
weed/command/fuse.go
|
|
@ -55,14 +55,14 @@ func runFuse(cmd *Command, args []string) bool { |
|
|
|
name := option.String() |
|
|
|
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
|
|
|
|
if rawArgs[i] == '"' { |
|
|
|
for i++; i < rawArgsLen && rawArgs[i] != '"'; i++ { |
|
|
|
option.WriteByte(rawArgs[i]) |
|
|
|
} |
|
|
|
|
|
|
|
// single quote separator read option until next single quote
|
|
|
|
// single quote separator read option until next single quote
|
|
|
|
} else if rawArgs[i] == '\'' { |
|
|
|
for i++; i < rawArgsLen && rawArgs[i] != '\''; i++ { |
|
|
|
option.WriteByte(rawArgs[i]) |
|
|
|