lib/rush/box.rb in rush-0.6.2 vs lib/rush/box.rb in rush-0.6.3
- old
+ new
@@ -78,10 +78,10 @@
def command_with_environment(command, env) # :nodoc:
return command unless env
vars = env.map do |key, value|
- "export #{key}='#{value}'"
+ "export #{key}=\"#{value.gsub('"', '\\"')}\""
end
vars.push(command).join("\n")
end
# Returns true if the box is responding to commands.