fix: handle error if exec fails
This commit is contained in:
parent
66d68fea35
commit
29c303535e
@ -94,6 +94,9 @@ if os.getenv 'SSH_TTY' then
|
|||||||
MapDHM()
|
MapDHM()
|
||||||
else
|
else
|
||||||
local handle = io.popen 'lsusb | grep -c Sofle'
|
local handle = io.popen 'lsusb | grep -c Sofle'
|
||||||
|
if handle == nil then
|
||||||
|
return
|
||||||
|
end
|
||||||
local automap = handle:read '*n'
|
local automap = handle:read '*n'
|
||||||
handle:close()
|
handle:close()
|
||||||
if automap == 1 then
|
if automap == 1 then
|
||||||
|
Loading…
Reference in New Issue
Block a user