aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrian.orwe <brian.orwe@gmail.com>2021-08-16 20:52:24 +0530
committerbrian.orwe <brian.orwe@gmail.com>2021-08-16 20:52:24 +0530
commit126fe78fac799971009dcddcc0695e29d7765a3e (patch)
tree2f0668bf1648c479a402f6c6abd7da2f883d42ef
parentb0a16200887917217270bd40555438560c90d070 (diff)
downloadpaq-126fe78fac799971009dcddcc0695e29d7765a3e.tar.gz
Fix PaqClean doing nothing on windows
-rw-r--r--lua/paq.lua6
1 files changed, 1 insertions, 5 deletions
diff --git a/lua/paq.lua b/lua/paq.lua
index ac6bab0..f308adc 100644
--- a/lua/paq.lua
+++ b/lua/paq.lua
@@ -150,15 +150,11 @@ local function remove(packdir)
150 end 150 end
151 for name, dir in pairs(to_rm) do 151 for name, dir in pairs(to_rm) do
152 if name ~= "paq-nvim" then 152 if name ~= "paq-nvim" then
153 call_proc("rm", {"-r", "-f", dir}, packdir, function(ok) 153 vim.fn.delete(dir,"rf")
154 last_ops[name] = "remove"
155 report("remove", ok and "ok" or "err", name, c)
156 end)
157 end 154 end
158 end 155 end
159end 156end
160 157
161
162local function list() 158local function list()
163 local installed = vim.tbl_filter(function(name) return packages[name].exists end, vim.tbl_keys(packages)) 159 local installed = vim.tbl_filter(function(name) return packages[name].exists end, vim.tbl_keys(packages))
164 local removed = vim.tbl_filter(function(name) return last_ops[name] == "remove" end, vim.tbl_keys(last_ops)) 160 local removed = vim.tbl_filter(function(name) return last_ops[name] == "remove" end, vim.tbl_keys(last_ops))