From 9e469f882f4ac5985594289421c406a29c0d203a Mon Sep 17 00:00:00 2001 From: alemi Date: Tue, 10 Sep 2024 16:21:12 +0200 Subject: [PATCH] fix: double dot in ext --- build.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build.lua b/build.lua index 19ccacf..11cdf88 100644 --- a/build.lua +++ b/build.lua @@ -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 } )