Make code a bit more readable
This commit is contained in:
parent
a0dacb0fc2
commit
34a3102325
|
@ -25,7 +25,8 @@ module Vagrant
|
||||||
output.split("\n").each do |line|
|
output.split("\n").each do |line|
|
||||||
# This should only ask for administrative permission once, even
|
# This should only ask for administrative permission once, even
|
||||||
# though its executed in multiple subshells.
|
# 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
|
end
|
||||||
|
|
||||||
# We run restart here instead of "update" just in case nfsd
|
# We run restart here instead of "update" just in case nfsd
|
||||||
|
|
Loading…
Reference in New Issue