diff options
Diffstat (limited to 'installer/install-kotlin-language-server.cmd')
-rw-r--r-- | installer/install-kotlin-language-server.cmd | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/installer/install-kotlin-language-server.cmd b/installer/install-kotlin-language-server.cmd index 84d5cbf..1a67356 100644 --- a/installer/install-kotlin-language-server.cmd +++ b/installer/install-kotlin-language-server.cmd @@ -1,9 +1,14 @@ @echo off
-cd %~dp0
-if exist "..\servers\kotlin-language-server" rd /S /Q "..\servers\kotlin-language-server"
-md "..\servers\kotlin-language-server"
-cd "..\servers\kotlin-language-server"
+setlocal
+
+cd /d %~dp0
+
+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"
unzip server.zip
del server.zip
|