aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2022-12-03 16:22:22 -0500
committerAdam Harrison <adamdharrison@gmail.com>2022-12-03 16:22:22 -0500
commit14364d9f4cf60bdf6e057483ce6e05e3f100ac02 (patch)
tree16d40f0376d79aa61da2bf7ddb25b2ce0c99c47d
parentbc2a5b75bc203fc30c31cf8ac3caceba6a8fd041 (diff)
downloadlite-xl-plugin-manager-14364d9f4cf60bdf6e057483ce6e05e3f100ac02.tar.gz
lite-xl-plugin-manager-14364d9f4cf60bdf6e057483ce6e05e3f100ac02.zip
Case.
-rw-r--r--src/lpm.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lpm.lua b/src/lpm.lua
index 28f866b..eefd609 100644
--- a/src/lpm.lua
+++ b/src/lpm.lua
@@ -392,7 +392,7 @@ function common.rmrf(root)
if info.type == "file" or info.symlink then
local status, err = os.remove(root)
if not status then
- if not err:find("permission") then error("can't remove " .. root .. ": " .. err) end
+ if not err:find("denied") then error("can't remove " .. root .. ": " .. err) end
system.chmod(root, 844) -- chmod so that we can write, for windows.
status, err = os.remove(root)
if not status then error("can't remove " .. root .. ": " .. err) end