aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorManfred Stienstra2009-12-03 19:25:08 +0100
committerMax Howell2009-12-04 14:16:45 +0000
commit56d7f01450a0d9df9de83aa679f064ab6bd44874 (patch)
tree1b17260b9a0313a07511f200688497f191aa5957 /Library
parent084c6fa968378d988e30ae23462a7ecfd1104aa8 (diff)
downloadhomebrew-56d7f01450a0d9df9de83aa679f064ab6bd44874.tar.bz2
Cast all arguments for Kernel#exec to string.
In the FFMPEG formula the revision number is represented as an integer, this ends up as an argument to Kernel#exec and it doesn't really like that. The fix is to cast all arguments to a string. Fixes #171.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/utils.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index 8ec87b508..5fd8fde5b 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -88,7 +88,7 @@ end
def safe_system cmd, *args
puts "#{cmd} #{args*' '}" if ARGV.verbose?
fork do
- exec(cmd, *args) rescue nil
+ exec(cmd, *args.map(&:to_s)) rescue nil
exit! 1 # never gets here unless exec failed
end
Process.wait