Merge pull request #220 from setrofim/master

asyncshell: minor fix to spawn with shell invocation
This commit is contained in:
Luke Bonham 2016-08-05 15:57:57 +02:00 committed by GitHub
commit a3ad60919f
1 changed files with 1 additions and 1 deletions

View File

@ -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)