aboutsummaryrefslogtreecommitdiff
path: root/installer/run_unzip.cmd
diff options
context:
space:
mode:
authorTsuyoshi CHO <Tsuyoshi.CHO@Gmail.com>2019-12-29 11:00:54 +0900
committerTsuyoshi CHO <Tsuyoshi.CHO@Gmail.com>2019-12-29 11:00:54 +0900
commita0865ce2089cfb3248d850e0d24a26855f03da6b (patch)
treed6d8885bca8f1dc2a3d9628cddd385b461f3ea05 /installer/run_unzip.cmd
parent45a0aa937fda907dcf2ce52362b8a69ea3a2fa62 (diff)
parent38c4e67140ee3e37c8c06765e111d00e2d1211dd (diff)
downloadvim-lsp-settings-a0865ce2089cfb3248d850e0d24a26855f03da6b.tar.gz
vim-lsp-settings-a0865ce2089cfb3248d850e0d24a26855f03da6b.tar.bz2
vim-lsp-settings-a0865ce2089cfb3248d850e0d24a26855f03da6b.zip
Merge branch 'master' into fix/windows-native-py3
Diffstat (limited to 'installer/run_unzip.cmd')
-rw-r--r--installer/run_unzip.cmd6
1 files changed, 4 insertions, 2 deletions
diff --git a/installer/run_unzip.cmd b/installer/run_unzip.cmd
index 1815a90..b3175d7 100644
--- a/installer/run_unzip.cmd
+++ b/installer/run_unzip.cmd
@@ -3,7 +3,9 @@
if "x%1" equ "x" goto :EOF
where unzip 2>NUL
-if %ERRORLEVEL% neq 0 (
+if %ERRORLEVEL% equ 0 (
+ unzip "%1"
+) else (
curl -L -o %~dp0\unzip.exe https://github.com/mattn/vim-lsp-settings/releases/download/v0.0.1/unzip.exe
+ %~dp0\unzip "%1"
)
-%~dp0\unzip "%1"