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
commit5ff55b1739d0b84292e40a1a4a5bc963a301e166 (patch)
tree21ff70c97c260b789e5289b3e2a229bb3459d990 /Library
parent965b0c8da7b36d07fdf04da2060b61460b95b803 (diff)
downloadbrew-5ff55b1739d0b84292e40a1a4a5bc963a301e166.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 Homebrew/homebrew#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