fix: double dot in ext

This commit is contained in:
əlemi 2024-09-10 16:21:12 +02:00
parent b3bc67cd38
commit 9e469f882f
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -8,9 +8,9 @@ local platform = string.lower(os_uname.sysname)
if platform == "mac" then platform = "darwin" end
local ext = os_uname.sysname
if os_uname.sysname == "Windows" then ext = ".dll"
elseif os_uname.sysname == "Mac" then ext = ".dylib"
else ext = ".so"
if os_uname.sysname == "Windows" then ext = "dll"
elseif os_uname.sysname == "Mac" then ext = "dylib"
else ext = "so"
end
-- -- TODO compare checksum before redownloading
@ -29,7 +29,7 @@ vim.api.nvim_create_autocmd(
{"ExitPre"},
{
callback = function (_ev)
vim.system({"sleep", "1", ";", "mv", native_path, replace_native_path}, { detach = true })
vim.system({"mv", native_path, replace_native_path}, { detach = true })
end
}
)