From 34a310232526b242c15e87839d77083562b502c9 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 8 Feb 2011 22:27:16 -0800 Subject: [PATCH] Make code a bit more readable --- lib/vagrant/hosts/bsd.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/vagrant/hosts/bsd.rb b/lib/vagrant/hosts/bsd.rb index 4773905d9..f81dae20a 100644 --- a/lib/vagrant/hosts/bsd.rb +++ b/lib/vagrant/hosts/bsd.rb @@ -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