aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2009-12-04 17:48:07 +0000
committerMax Howell2009-12-04 18:16:32 +0000
commit7bce70ec5bea95e20101b3a056d5af1ff872cd0c (patch)
tree362e25a897e43d080f1c275c8523d944f35fe82e /Library
parentcbd7ff972c52ebcbe87f03040fa606b1b2c1c706 (diff)
downloadhomebrew-7bce70ec5bea95e20101b3a056d5af1ff872cd0c.tar.bz2
Apparently the map didn't work on Leopard
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/utils.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index 5fd8fde5b..404873e60 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -88,7 +88,8 @@ end
def safe_system cmd, *args
puts "#{cmd} #{args*' '}" if ARGV.verbose?
fork do
- exec(cmd, *args.map(&:to_s)) rescue nil
+ args.collect!{|arg| arg.to_s}
+ exec(cmd, *args) rescue nil
exit! 1 # never gets here unless exec failed
end
Process.wait