Use global var $stderr instead of constant STDERR

This commit is contained in:
Josh Hagins
2016-01-04 18:15:28 -05:00
parent 205ccc3c3a
commit a23e270414
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -384,9 +384,9 @@ def report
puts "Proposed file name: #{cask_file_name}"
puts "Cask Header Line: cask '#{cask_token}' do"
if warnings.length > 0
STDERR.puts "\n"
STDERR.puts warnings
STDERR.puts "\n"
$stderr.puts "\n"
$stderr.puts warnings
$stderr.puts "\n"
exit 1
end
end
+1 -1
View File
@@ -93,7 +93,7 @@ class Hbc::SystemCommand::Result
external = File.basename(command.first)
lines = garbage.strip.split("\n")
opoo "Non-XML stdout from #{external}:"
STDERR.puts lines.map {|l| " #{l}"}
$stderr.puts lines.map {|l| " #{l}"}
end
def self._parse_plist(command, output)