From 5ff55b1739d0b84292e40a1a4a5bc963a301e166 Mon Sep 17 00:00:00 2001 From: Manfred Stienstra <manfred@fngtps.com> Date: Thu, 3 Dec 2009 19:25:08 +0100 Subject: [PATCH] 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 Homebrew/homebrew#171. --- Library/Homebrew/utils.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index 8ec87b5087..5fd8fde5bf 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 -- GitLab