bliss

KISS in Lua
git clone git://bvnf.space/bliss.git
Log | Files | Refs | README | LICENSE

commit 7416471a88d8ac814b51d65304bb1a339aae408f
parent ffb88123943eaa3bc84303049b5e24e130c8e749
Author: phoebos <ben@bvnf.space>
Date:   Wed, 23 Aug 2023 11:26:20 +0100

utils.get_available: check for nil in table

Diffstat:
Mbliss/utils.lua | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bliss/utils.lua b/bliss/utils.lua @@ -94,7 +94,7 @@ function get_available(...) for i = 1, select("#", ...) do x = select(i, ...) res = capture("command -v " .. x) - if res[1] then return res[1] end + if res and res[1] then return res[1] end end return nil end