fix weed fuse parameters parsing

This commit is contained in:
danielflira
2021-07-02 16:52:52 -03:00
parent 3d9ec2e0b6
commit 586e066897

View File

@@ -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++ {