aboutsummaryrefslogtreecommitdiff
path: root/installer/install-metals.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-metals.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-metals.cmd')
-rw-r--r--installer/install-metals.cmd10
1 files changed, 5 insertions, 5 deletions
diff --git a/installer/install-metals.cmd b/installer/install-metals.cmd
index 8d290cf..294ed2d 100644
--- a/installer/install-metals.cmd
+++ b/installer/install-metals.cmd
@@ -2,12 +2,12 @@
setlocal
-cd %~dp0
+cd /d %~dp0
-set server_dir="..\servers\metals"
-rd /Q /S %server_dir%
-md %server_dir%
-cd "%server_dir%"
+set server_dir=..\servers\metals
+if exist %server_dir% rd /Q /S "%server_dir%"
+md "%server_dir%"
+cd /d "%server_dir%"
curl -Lo coursier https://git.io/coursier-cli
curl -Lo coursier.bat https://git.io/coursier-bat