popen: Do not suppress stderr unless -d or -v
This commit is contained in:
parent
4ef03223e0
commit
78d3112df2
@ -13,7 +13,7 @@ module Utils
|
|||||||
return pipe.read unless block_given?
|
return pipe.read unless block_given?
|
||||||
yield pipe
|
yield pipe
|
||||||
else
|
else
|
||||||
$stderr.reopen("/dev/null", "w")
|
$stderr.reopen("/dev/null", "w") if !ARGV.debug? && !ARGV.verbose?
|
||||||
exec(*args)
|
exec(*args)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user