From 14364d9f4cf60bdf6e057483ce6e05e3f100ac02 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Sat, 3 Dec 2022 16:22:22 -0500 Subject: Case. --- src/lpm.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3