diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2019-12-26 12:22:11 +0900 |
---|---|---|
committer | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2019-12-26 12:22:11 +0900 |
commit | 275f56db0b28b326e6a7fd44f359d50c3c509897 (patch) | |
tree | 4246548d15291fcd97ebdd8def21125e6765c260 /installer/install-kotlin-language-server.cmd | |
parent | 1ffdfd7077fa6e9021ceb5de9aa278f49dbb9567 (diff) | |
download | vim-lsp-settings-275f56db0b28b326e6a7fd44f359d50c3c509897.tar.gz vim-lsp-settings-275f56db0b28b326e6a7fd44f359d50c3c509897.tar.bz2 vim-lsp-settings-275f56db0b28b326e6a7fd44f359d50c3c509897.zip |
Strict cd /d
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
|