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
commitba1c0af94c52bb8c638aff94f31f084b47f94697 (patch)
treeec915c7001c7d80b209f3d012c1e6ad061104254 /Library
parent6c123b176d431788702b491ff080d033b3635b22 (diff)
downloadbrew-ba1c0af94c52bb8c638aff94f31f084b47f94697.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