mirror of https://github.com/lcpz/lain.git
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:
parent
417c3ce33b
commit
27ffe0084a
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue