From: Sergei Trofimov Date: Fri, 5 Aug 2016 09:09:18 +0000 (+0100) Subject: asyncshell: minor fix to spawn with shell invocation X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/27ffe0084a62c37526b39ece9c574416ad67f972 asyncshell: minor fix to spawn with shell invocation Fixed an erroneous call to "awful.spawn.with_shell" when "with_shell" is not defined. --- diff --git a/asyncshell.lua b/asyncshell.lua index a8e3676..61336db 100644 --- a/asyncshell.lua +++ b/asyncshell.lua @@ -52,7 +52,7 @@ function asyncshell.request(command, callback, timeout) id, formatted_command ) - if type(awful.spawn) == 'table' then + if type(awful.spawn) == 'table' and awful.spawn.with_shell then awful.spawn.with_shell(req) else awful.util.spawn_with_shell(req)