Make code a bit more readable

This commit is contained in:
Mitchell Hashimoto 2011-02-08 22:27:16 -08:00
parent a0dacb0fc2
commit 34a3102325
1 changed files with 2 additions and 1 deletions

View File

@ -25,7 +25,8 @@ module Vagrant
output.split("\n").each do |line|
# This should only ask for administrative permission once, even
# though its executed in multiple subshells.
system(%Q[sudo su root -c "echo '#{line.gsub('"', '\"')}' >> /etc/exports"])
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