Added quotes to location to handle spaces in file paths

This commit is contained in:
Jeff Peck 2017-05-28 01:36:59 -04:00
parent 06b75cdde6
commit 901859fff0
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ module VagrantPlugins
line_endings = "crlf"
else
hosts_location = '/etc/hosts'
copy_proc = Proc.new { `[ -w #{hosts_location} ] && cat #{file} > #{hosts_location} || sudo cp #{file} #{hosts_location}` }
copy_proc = Proc.new { `[ -w "#{hosts_location}" ] && cat "#{file}" > "#{hosts_location}" || sudo cp "#{file}" "#{hosts_location}"` }
line_endings = "lf"
end