aboutsummaryrefslogtreecommitdiff
path: root/installer/install-lsp4xml.cmd
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <mattn.jp@gmail.com>2019-12-26 12:22:11 +0900
committerYasuhiro Matsumoto <mattn.jp@gmail.com>2019-12-26 12:22:11 +0900
commit275f56db0b28b326e6a7fd44f359d50c3c509897 (patch)
tree4246548d15291fcd97ebdd8def21125e6765c260 /installer/install-lsp4xml.cmd
parent1ffdfd7077fa6e9021ceb5de9aa278f49dbb9567 (diff)
downloadvim-lsp-settings-275f56db0b28b326e6a7fd44f359d50c3c509897.tar.gz
vim-lsp-settings-275f56db0b28b326e6a7fd44f359d50c3c509897.tar.bz2
vim-lsp-settings-275f56db0b28b326e6a7fd44f359d50c3c509897.zip
Strict cd /d
Diffstat (limited to 'installer/install-lsp4xml.cmd')
-rw-r--r--installer/install-lsp4xml.cmd13
1 files changed, 9 insertions, 4 deletions
diff --git a/installer/install-lsp4xml.cmd b/installer/install-lsp4xml.cmd
index 966a3b7..1ff4b3b 100644
--- a/installer/install-lsp4xml.cmd
+++ b/installer/install-lsp4xml.cmd
@@ -1,9 +1,14 @@
@echo off
-cd %~dp0
-if exist "..\servers\lsp4xml" rd /S /Q "..\servers\lsp4xml"
-md "..\servers\lsp4xml"
-cd "..\servers\lsp4xml"
+setlocal
+
+cd /d %~dp0
+
+set server_dir=..\servers\lsp4xml
+if exist %server_dir% rd /Q /S "%server_dir%"
+md "%server_dir%"
+cd /d "%server_dir%"
+
curl -LO "https://dl.bintray.com/lsp4xml/releases/org/lsp4xml/org.eclipse.lsp4xml/0.9.1/org.eclipse.lsp4xml-0.9.1-uber.jar"
echo @echo off ^