From 60a039f6c2914e0d6320a063032c03c8fdda0760 Mon Sep 17 00:00:00 2001 From: thinca Date: Tue, 31 Dec 2019 18:56:18 +0900 Subject: Setup server directory in Vim script All installer scripts assume invoked at the installing path. --- installer/install-reason-language-server.cmd | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) (limited to 'installer/install-reason-language-server.cmd') diff --git a/installer/install-reason-language-server.cmd b/installer/install-reason-language-server.cmd index 1aa9aa8..96ea914 100644 --- a/installer/install-reason-language-server.cmd +++ b/installer/install-reason-language-server.cmd @@ -1,18 +1,8 @@ -@echo off - -setlocal - -cd /d %~dp0 - -set installer_dir=%cd% -set server_dir=..\servers\reason-language-server -if exist %server_dir% rd /Q /S "%server_dir%" -md "%server_dir%" -cd /d "%server_dir%" - -curl -L -o rls-windows.zip "https://github.com/jaredly/reason-language-server/releases/download/1.7.4/rls-windows.zip" -call %installer_dir%\run_unzip rls-windows.zip -del rls-windows.zip - -move rls-windows\reason-language-server.exe reason-language-server.exe -rmdir rls-windows +@echo off + +curl -L -o rls-windows.zip "https://github.com/jaredly/reason-language-server/releases/download/1.7.4/rls-windows.zip" +call "%~dp0\run_unzip" rls-windows.zip +del rls-windows.zip + +move rls-windows\reason-language-server.exe reason-language-server.exe +rmdir rls-windows -- cgit v1.2.3-54-g00ecf