aboutsummaryrefslogtreecommitdiff
path: root/installer/install-gopls.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-gopls.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-gopls.cmd')
-rw-r--r--installer/install-gopls.cmd11
1 files changed, 7 insertions, 4 deletions
diff --git a/installer/install-gopls.cmd b/installer/install-gopls.cmd
index 2862abe..8289713 100644
--- a/installer/install-gopls.cmd
+++ b/installer/install-gopls.cmd
@@ -2,10 +2,13 @@
setlocal
-cd %~dp0
-if exist "..\servers\gopls" rd /S /Q "..\servers\gopls"
-md "..\servers\gopls"
-cd "..\servers\gopls"
+cd /d %~dp0
+
+set server_dir=..\servers\gopls
+if exist %server_dir% rd /Q /S "%server_dir%"
+md "%server_dir%"
+cd /d "%server_dir%"
+
set GOPATH=%cd%
set GOBIN=%cd%
go get -v -u golang.org/x/tools/cmd/gopls