Fix awful.util.pread() return value (#1005)

The deprecation wrapper that we still have for this function didn't return
anything. However, awful.util.pread() used to return strings. This breaks
script.

Work around this by returning an empty string. That way code will still break,
but at least it should not error out.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2016-07-17 15:29:15 +02:00 committed by Daniel Hahler
parent 34cc04ec97
commit e6ddffda38
1 changed files with 1 additions and 0 deletions

View File

@ -32,6 +32,7 @@ end
util.pread = function() util.pread = function()
util.deprecate("Use io.popen() directly or look at awful.spawn.easy_async() " util.deprecate("Use io.popen() directly or look at awful.spawn.easy_async() "
.. "for an asynchronous alternative") .. "for an asynchronous alternative")
return ""
end end
return return