aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lpm.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lpm.lua b/src/lpm.lua
index 2e0b7fb..fe60af3 100644
--- a/src/lpm.lua
+++ b/src/lpm.lua
@@ -1425,7 +1425,9 @@ end
function LiteXL:uninstall()
if not system.stat(self.local_path) then error("lite-xl " .. self.version .. " not installed") end
- common.rmrf(self.local_path)
+ if prompt("This will delete " .. self.local_path .. ". Are you sure you want to continue?") then
+ common.rmrf(self.local_path)
+ end
end