diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2023-11-27 14:40:15 -0500 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2023-11-27 14:40:15 -0500 |
commit | 40bbbe669a956834c5a4a0fcd3fd1568e36d1f09 (patch) | |
tree | 5d12778c3fcde41d1c410924ffa282aaf2b88612 /src | |
parent | 903ecb1d0ffa5e5b8c9942d455ce22539a625571 (diff) | |
download | lite-xl-plugin-manager-40bbbe669a956834c5a4a0fcd3fd1568e36d1f09.tar.gz lite-xl-plugin-manager-40bbbe669a956834c5a4a0fcd3fd1568e36d1f09.zip |
Added in check for executable.
Diffstat (limited to 'src')
-rw-r--r-- | src/lpm.lua | 4 |
1 files changed, 3 insertions, 1 deletions
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() |