diff options
| author | Jack Nagel | 2014-02-15 17:47:24 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-02-15 17:47:24 -0500 |
| commit | dca786176e250843c3d27d562675e62c86d9d47a (patch) | |
| tree | 3bf4ddb3ce239e5fb66fb3f32738257939028559 /Library | |
| parent | 4bc82456ee915c0153505da9f4db9461071d0fe0 (diff) | |
| download | brew-dca786176e250843c3d27d562675e62c86d9d47a.tar.bz2 | |
Formula#system: remove unnecessary string casts
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 9e738e3ff..b1fe8e9ec 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -569,7 +569,7 @@ class Formula @exec_count ||= 0 @exec_count += 1 logd = HOMEBREW_LOGS/name - logfn = "#{logd}/%02d.%s" % [@exec_count, File.basename(cmd.to_s).split(' ').first] + logfn = "#{logd}/%02d.%s" % [@exec_count, File.basename(cmd).split(' ').first] mkdir_p(logd) rd, wr = IO.pipe @@ -579,7 +579,7 @@ class Formula $stdout.reopen wr $stderr.reopen wr args.collect!{|arg| arg.to_s} - exec(cmd.to_s, *args) rescue nil + exec(cmd, *args) rescue nil puts "Failed to execute: #{cmd}" exit! 1 # never gets here unless exec threw or failed end |
