From bda93eb2b8e40c0c4a01ab9634f1fb43feb63f05 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Sun, 25 Feb 2024 18:10:20 -0500 Subject: Might fix #64. --- src/lpm.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lpm.lua b/src/lpm.lua index 8638efe..2955e68 100644 --- a/src/lpm.lua +++ b/src/lpm.lua @@ -1395,7 +1395,11 @@ function Bottle:run(args) if self.is_system then error("system bottle cannot be run") end local path = self.local_path .. PATHSEP .. "lite-xl" .. EXECUTABLE_EXTENSION if not system.stat(path) then error("cannot find bottle executable " .. path) end - os.execute(path .. (#args > 0 and " " or "") .. table.concat(args, " ")) + local line = path .. (#args > 0 and " " or "") .. table.concat(common.map(args, function(arg) + return "'" .. arg:gsub("'", "'\"'\"'") .. "'" + end), " ") + log_action("Running " .. line) + return os.execute(line) end local function get_repository_addons() -- cgit v1.2.3