better fix for option format

This commit is contained in:
chrislu 2022-09-30 08:49:38 -07:00
parent ba0db28dbb
commit c3487d3da7

View file

@ -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)
}
}