awful: don't try to spawn nil or empty commands
This commit is contained in:
parent
4ea0f659e2
commit
651479f254
|
@ -765,7 +765,9 @@ end
|
||||||
-- @param cmd The command.
|
-- @param cmd The command.
|
||||||
-- @return The os.execute() return value.
|
-- @return The os.execute() return value.
|
||||||
function spawn(cmd)
|
function spawn(cmd)
|
||||||
return os.execute(cmd .. "&")
|
if cmd and cmd ~= "" then
|
||||||
|
return os.execute(cmd .. "&")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Eval Lua code.
|
--- Eval Lua code.
|
||||||
|
|
Loading…
Reference in New Issue