We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ede8b48 + 901859f commit 81079f7Copy full SHA for 81079f7
lib/vagrant-hostmanager/hosts_file/updater.rb
@@ -65,7 +65,7 @@ class << self
65
line_endings = "crlf"
66
else
67
hosts_location = '/etc/hosts'
68
- 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}"` }
69
line_endings = "lf"
70
end
71
0 commit comments