diff options
Diffstat (limited to 'installer/install-cobol-language-support.cmd')
-rw-r--r-- | installer/install-cobol-language-support.cmd | 50 |
1 files changed, 28 insertions, 22 deletions
diff --git a/installer/install-cobol-language-support.cmd b/installer/install-cobol-language-support.cmd index e1b6090..76c1a2c 100644 --- a/installer/install-cobol-language-support.cmd +++ b/installer/install-cobol-language-support.cmd @@ -1,22 +1,28 @@ -@echo off - -setlocal - -cd /d %~dp0 - -set server_dir=..\servers\cobol-language-support -if exist %server_dir% rd /Q /S "%server_dir%" -md "%server_dir%" -cd /d "%server_dir%" - -set version=0.9.1 -set url=https://github.com/eclipse/che-che4z-lsp-for-cobol/releases/download/%version%/cobol-language-support-%version%.vsix -curl -LO "%url%" -unzip "cobol-language-support-%version%.vsix" - -echo @echo off ^ - -java "-Dline.speparator=\r\n" -jar "%%~dp0\extension\server\lsp-service-cobol-%version%.jar" pipeEnabled ^ - -> cobol-language-support.cmd - +@echo off
+
+where unzip1 2>NUL
+if %ERRORLEVEL% neq 0 (
+ echo unzip command required
+ exit /b 1
+)
+
+setlocal
+
+cd /d %~dp0
+
+set server_dir=..\servers\cobol-language-support
+if exist %server_dir% rd /Q /S "%server_dir%"
+md "%server_dir%"
+cd /d "%server_dir%"
+
+set version=0.9.1
+set url=https://github.com/eclipse/che-che4z-lsp-for-cobol/releases/download/%version%/cobol-language-support-%version%.vsix
+curl -LO "%url%"
+unzip "cobol-language-support-%version%.vsix"
+
+echo @echo off ^
+
+java "-Dline.speparator=\r\n" -jar "%%~dp0\extension\server\lsp-service-cobol-%version%.jar" pipeEnabled ^
+
+> cobol-language-support.cmd
+
|