diff options
-rw-r--r-- | src/lpm.lua | 2 |
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 |