forked from TrueCloudLab/rclone
cmount: fix on Linux - only apply volname for Windows and macOS
This commit is contained in:
parent
703b0535a4
commit
84e21ade6b
1 changed files with 4 additions and 2 deletions
|
@ -69,8 +69,10 @@ func mountOptions(device string, mountpoint string) (options []string) {
|
||||||
options = append(options, "--FileSystemName=rclone")
|
options = append(options, "--FileSystemName=rclone")
|
||||||
}
|
}
|
||||||
|
|
||||||
if mountlib.VolumeName != "" {
|
if runtime.GOOS == "darwin" || runtime.GOOS == "windows" {
|
||||||
options = append(options, "-o", "volname="+mountlib.VolumeName)
|
if mountlib.VolumeName != "" {
|
||||||
|
options = append(options, "-o", "volname="+mountlib.VolumeName)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if mountlib.AllowNonEmpty {
|
if mountlib.AllowNonEmpty {
|
||||||
options = append(options, "-o", "nonempty")
|
options = append(options, "-o", "nonempty")
|
||||||
|
|
Loading…
Reference in a new issue