From f6f8ff1311eeac8d349faf66fe01f0e39c640662 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Sun, 1 Dec 2024 14:35:11 -0500 Subject: Added in prompt for uninstalling lite-xls. --- src/lpm.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3