aboutsummaryrefslogtreecommitdiff
path: root/installer/install-kotlin-language-server.cmd
diff options
context:
space:
mode:
authorthinca <thinca@gmail.com>2019-12-31 18:56:18 +0900
committerthinca <thinca@gmail.com>2019-12-31 18:56:18 +0900
commit60a039f6c2914e0d6320a063032c03c8fdda0760 (patch)
treeba53fd4948160d5b2980d4f7ae3484178d40ce77 /installer/install-kotlin-language-server.cmd
parent796a6b950a3c520ec24139836135c35364cf941d (diff)
downloadvim-lsp-settings-60a039f6c2914e0d6320a063032c03c8fdda0760.tar.gz
vim-lsp-settings-60a039f6c2914e0d6320a063032c03c8fdda0760.tar.bz2
vim-lsp-settings-60a039f6c2914e0d6320a063032c03c8fdda0760.zip
Setup server directory in Vim script
All installer scripts assume invoked at the installing path.
Diffstat (limited to 'installer/install-kotlin-language-server.cmd')
-rw-r--r--installer/install-kotlin-language-server.cmd12
1 files changed, 1 insertions, 11 deletions
diff --git a/installer/install-kotlin-language-server.cmd b/installer/install-kotlin-language-server.cmd
index 11d141c..d28b8d7 100644
--- a/installer/install-kotlin-language-server.cmd
+++ b/installer/install-kotlin-language-server.cmd
@@ -1,17 +1,7 @@
@echo off
-setlocal
-
-cd /d %~dp0
-
-set installer_dir=%cd%
-set server_dir=..\servers\kotlin-language-server
-if exist %server_dir% rd /Q /S "%server_dir%"
-md "%server_dir%"
-cd /d "%server_dir%"
-
curl -L -o server.zip "https://github.com/fwcd/kotlin-language-server/releases/download/0.5.2/server.zip"
-call %installer_dir%\run_unzip server.zip
+call "%~dp0\run_unzip" server.zip
del server.zip
echo @echo off ^