From 40bbbe669a956834c5a4a0fcd3fd1568e36d1f09 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Mon, 27 Nov 2023 14:40:15 -0500 Subject: Added in check for executable. --- src/lpm.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/lpm.lua') diff --git a/src/lpm.lua b/src/lpm.lua index f273688..afbbd2d 100644 --- a/src/lpm.lua +++ b/src/lpm.lua @@ -1374,7 +1374,9 @@ end function Bottle:run(args) args = args or {} if self.is_system then error("system bottle cannot be run") end - os.execute(self.local_path .. PATHSEP .. "lite-xl" .. (#args > 0 and " " or "") .. table.concat(args, " ")) + local path = self.local_path .. PATHSEP .. "lite-xl" + if not system.stat(path) then error("cannot find bottle executable " .. path) end + os.execute(path .. (#args > 0 and " " or "") .. table.concat(args, " ")) end local function get_repository_addons() -- cgit v1.2.3