aboutsummaryrefslogtreecommitdiff
path: root/src/lpm.lua
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2024-02-25 17:50:42 -0500
committerAdam Harrison <adamdharrison@gmail.com>2024-02-25 17:50:42 -0500
commitad23c29eb4178fc3b5a39b777a78443bef9c5ba7 (patch)
treebf457721e33f4f479d8c00664f2bb0355b95d65f /src/lpm.lua
parent59a3d0b59c3e35d1eb9a3d11c40afc02e974fe34 (diff)
parentb4931cb618a2b4d22482694cbc40e60990d684fc (diff)
downloadlite-xl-plugin-manager-ad23c29eb4178fc3b5a39b777a78443bef9c5ba7.tar.gz
lite-xl-plugin-manager-ad23c29eb4178fc3b5a39b777a78443bef9c5ba7.zip
Merge branch 'master' of github.com:adamharrison/lite-xl-plugin-managerv1.2.0
Diffstat (limited to 'src/lpm.lua')
-rw-r--r--src/lpm.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lpm.lua b/src/lpm.lua
index 8ebe33f..8638efe 100644
--- a/src/lpm.lua
+++ b/src/lpm.lua
@@ -1379,7 +1379,7 @@ function Bottle:construct()
end
-- atomically move things
common.rmrf(local_path)
- common.mkdirp(local_path)
+ common.mkdirp(common.dirname(local_path))
common.rename(self.local_path, local_path)
self.local_path = local_path
end
@@ -1393,7 +1393,7 @@ end
function Bottle:run(args)
args = args or {}
if self.is_system then error("system bottle cannot be run") end
- local path = self.local_path .. PATHSEP .. "lite-xl"
+ 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, " "))
end