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:
parent
34cc04ec97
commit
e6ddffda38
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue