asyncshell: minor fix to spawn with shell invocation

Fixed an erroneous call to "awful.spawn.with_shell" when "with_shell" is
not defined.
This commit is contained in:
Sergei Trofimov 2016-08-05 10:09:18 +01:00
parent 417c3ce33b
commit 27ffe0084a
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ function asyncshell.request(command, callback, timeout)
id, formatted_command 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) awful.spawn.with_shell(req)
else else
awful.util.spawn_with_shell(req) awful.util.spawn_with_shell(req)