diff options
Diffstat (limited to 'lognotify.rb')
-rwxr-xr-x | lognotify.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lognotify.rb b/lognotify.rb index 1472117..5f16df2 100755 --- a/lognotify.rb +++ b/lognotify.rb @@ -84,9 +84,9 @@ def retrieve_lines conf, lines Open3.popen3(command) do |stdin, stdout, stderr| # Raise an error if any part of the command resulted in an error. - raise stderr.gets unless stderr.eof? + raise stderr.read unless stderr.eof? - return stdout.gets.to_s + return stdout.read end end |