synced_folders/rsync: style
This commit is contained in:
parent
a7453a6ad6
commit
bb967265df
|
@ -74,12 +74,12 @@ module VagrantPlugins
|
||||||
|
|
||||||
# On Windows, we have to set a default chmod flag to avoid permission issues
|
# On Windows, we have to set a default chmod flag to avoid permission issues
|
||||||
if Vagrant::Util::Platform.windows? && !args.any? { |arg| arg.start_with?("--chmod=") }
|
if Vagrant::Util::Platform.windows? && !args.any? { |arg| arg.start_with?("--chmod=") }
|
||||||
#Ensures that all non-masked bits get enabled
|
# Ensures that all non-masked bits get enabled
|
||||||
args << "--chmod=ugo=rwX"
|
args << "--chmod=ugo=rwX"
|
||||||
|
|
||||||
#Remove the -p option if --archive is enabled (--archive equals -rlptgoD)
|
# Remove the -p option if --archive is enabled (--archive equals -rlptgoD)
|
||||||
#otherwise new files will not have the destination-default permissions
|
# otherwise new files will not have the destination-default permissions
|
||||||
args << "--no-perms" if (args.include? "--archive") || (args.include? "-a")
|
args << "--no-perms" if args.include?("--archive") || args.include?("-a")
|
||||||
end
|
end
|
||||||
|
|
||||||
# Build up the actual command to execute
|
# Build up the actual command to execute
|
||||||
|
|
Loading…
Reference in New Issue