diff options
Diffstat (limited to 'installer/install-solargraph.cmd')
-rw-r--r-- | installer/install-solargraph.cmd | 37 |
1 files changed, 21 insertions, 16 deletions
diff --git a/installer/install-solargraph.cmd b/installer/install-solargraph.cmd index 9f7c973..fe7f6d8 100644 --- a/installer/install-solargraph.cmd +++ b/installer/install-solargraph.cmd @@ -1,16 +1,21 @@ -@echo off - -cd %~dp0 -if exist "..\servers\solargraph" rd /S /Q "..\servers\solargraph" -md "..\servers\solargraph" -cd "..\servers\solargraph" -git clone "https://github.com/castwide/solargraph" . - -call bundle install --path vendor/bundle - -echo @echo off ^ - -bundle exec ruby %%~dp0\bin/solargraph stdio ^ - -> solargraph.cmd - +@echo off
+
+setlocal
+
+cd /d %~dp0
+
+set server_dir=..\servers\solargraph
+if exist %server_dir% rd /Q /S "%server_dir%"
+md "%server_dir%"
+cd /d "%server_dir%"
+
+git clone "https://github.com/castwide/solargraph" .
+
+call bundle install --path vendor/bundle
+
+echo @echo off ^
+
+bundle exec ruby %%~dp0\bin/solargraph stdio ^
+
+> solargraph.cmd
+
|