From: Tilman Sauerbeck Date: Mon, 14 Aug 2006 16:08:37 +0000 (+0200) Subject: Only pass a single argument to Kernel.exec. X-Git-Url: http://git.code-monkey.de/?p=ruby-vorbistagger.git;a=commitdiff_plain;h=5aa77e9f9e76e9e05a36e16cfb494e9aad953665 Only pass a single argument to Kernel.exec. --- diff --git a/rake/configuretask.rb b/rake/configuretask.rb index 0cad7ca..2078da4 100644 --- a/rake/configuretask.rb +++ b/rake/configuretask.rb @@ -205,14 +205,15 @@ module Rake def initialize(name, opts = {}) super - @command = "pkg-config --silence-errors" + @command = "pkg-config" end protected def lookup_flags(f) f = :modversion if f == :version - tmp = `#{@command} --#{f} #{@name}`.strip.tr("\n", "/") + tmp = `#{@command} --silence-errors --#{f} #{@name}`. + strip.tr("\n", "/") $?.exitstatus.zero? ? tmp : nil end end