popen: Do not suppress stderr unless -d or -v

This commit is contained in:
Shaun Jackman 2017-08-28 10:10:05 -07:00
parent 4ef03223e0
commit 78d3112df2

View File

@ -13,7 +13,7 @@ module Utils
return pipe.read unless block_given?
yield pipe
else
$stderr.reopen("/dev/null", "w")
$stderr.reopen("/dev/null", "w") if !ARGV.debug? && !ARGV.verbose?
exec(*args)
end
end