From c3487d3da7ad97cd21b7ab7e5109ecd5d46a01cb Mon Sep 17 00:00:00 2001 From: chrislu Date: Fri, 30 Sep 2022 08:49:38 -0700 Subject: [PATCH] better fix for option format --- weed/command/fuse.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/weed/command/fuse.go b/weed/command/fuse.go index 1d58ffdd7..cf088022c 100644 --- a/weed/command/fuse.go +++ b/weed/command/fuse.go @@ -191,7 +191,11 @@ func runFuse(cmd *Command, args []string) bool { case "fusermount.path": fusermountPath = parameter.value default: - mountOptions.extraOptions = append(mountOptions.extraOptions, fmt.Sprintf("%s=%s", parameter.name, parameter.value)) + t := parameter.name + if parameter.value != "true" { + t = fmt.Sprintf("%s=%s", parameter.name, parameter.value) + } + mountOptions.extraOptions = append(mountOptions.extraOptions, t) } }