lib/firebrew/firefox/command.rb in firebrew-0.1.0 vs lib/firebrew/firefox/command.rb in firebrew-0.1.1
- old
+ new
@@ -8,20 +8,20 @@
def initialize(config={}, executer = Executer.new)
@config = config
@executer = executer
begin
- result = @executer.exec('%{firefox} --version' % @config)
+ result = @executer.exec('"%{firefox}" --version' % @config)
raise Firebrew::FirefoxCommandError unless result[0] =~ /Mozilla Firefox/
raise Firebrew::FirefoxCommandError unless result[1] == 0
rescue SystemCallError
raise Firebrew::FirefoxCommandError
end
end
def version
return @version if @version.present?
- result = @executer.exec('%{firefox} --version' % @config)[0]
+ result = @executer.exec('"%{firefox}" --version' % @config)[0]
@version = result.match(/[0-9.]+/)[0]
end
end
end