aboutsummaryrefslogtreecommitdiff
path: root/installer/install-cobol-language-support.cmd
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <mattn.jp@gmail.com>2019-12-26 13:56:20 +0900
committerYasuhiro Matsumoto <mattn.jp@gmail.com>2019-12-26 13:56:20 +0900
commit70d4458905da0a22ad439884da73606a5ccc6bd2 (patch)
tree445a87c4f8fcca96cc24513b3eff19e1ac2aabb8 /installer/install-cobol-language-support.cmd
parent965dad764ca5b08831638051d7ce050b49386ea1 (diff)
downloadvim-lsp-settings-70d4458905da0a22ad439884da73606a5ccc6bd2.tar.gz
vim-lsp-settings-70d4458905da0a22ad439884da73606a5ccc6bd2.tar.bz2
vim-lsp-settings-70d4458905da0a22ad439884da73606a5ccc6bd2.zip
Check unzip command existsv0.0.1
Diffstat (limited to 'installer/install-cobol-language-support.cmd')
-rw-r--r--installer/install-cobol-language-support.cmd50
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
+