lib/vagrant/hosts/bsd.rb in vagrantup-0.7.1 vs lib/vagrant/hosts/bsd.rb in vagrantup-0.7.2
- old
+ new
@@ -23,9 +23,10 @@
sleep 0.5
output.split("\n").each do |line|
# This should only ask for administrative permission once, even
# though its executed in multiple subshells.
+ line = line.gsub('"', '\"')
system(%Q[sudo su root -c "echo '#{line}' >> /etc/exports"])
end
# We run restart here instead of "update" just in case nfsd
# is not starting