diff options
Diffstat (limited to 'installer/run_unzip.cmd')
-rw-r--r-- | installer/run_unzip.cmd | 6 |
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" |