diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2024-02-25 18:10:20 -0500 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2024-02-25 18:10:20 -0500 |
commit | bda93eb2b8e40c0c4a01ab9634f1fb43feb63f05 (patch) | |
tree | 7220c32e1d4a84befc38be37afcb20c668e27172 | |
parent | be1520be24e45544c08acf34c99297a6863593a1 (diff) | |
download | lite-xl-plugin-manager-bda93eb2b8e40c0c4a01ab9634f1fb43feb63f05.tar.gz lite-xl-plugin-manager-bda93eb2b8e40c0c4a01ab9634f1fb43feb63f05.zip |
Might fix #64.
-rw-r--r-- | src/lpm.lua | 6 |
1 files changed, 5 insertions, 1 deletions
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() |