浏览代码

Appveyor: download SSL only if it does not exist

bel 10 年之前
父节点
当前提交
386cf41afa
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      appveyor.yml

+ 3 - 3
appveyor.yml

@@ -61,9 +61,9 @@ install:
   - if exist "%mingw_log_folder%" @for /f %%f in ('dir /b /oD /tc "%mingw_log_folder%"') do @set "mingw_log_file=%mingw_log_folder%\%%f"
   - if exist "%mingw_log_file%" powershell Push-AppveyorArtifact "%mingw_log_file%" -FileName mingw-download.log
   # Get OpenSSL
-  - md c:\ssl\
-  - curl http://slproweb.com/download/Win32OpenSSL-1_0_2d.exe -o C:\ssl\Win32OpenSSL.exe  
-  - curl http://slproweb.com/download/Win64OpenSSL-1_0_2d.exe -o C:\ssl\Win64OpenSSL.exe
+  - if not exist C:\ssl\ (md C:\ssl\)
+  - if not exist C:\ssl\Win32OpenSSL.exe (curl http://slproweb.com/download/Win32OpenSSL-1_0_2d.exe -o C:\ssl\Win32OpenSSL.exe)
+  - if not exist C:\ssl\Win32OpenSSL.exe (curl http://slproweb.com/download/Win64OpenSSL-1_0_2d.exe -o C:\ssl\Win64OpenSSL.exe)
   - C:\ssl\Win32OpenSSL.exe /SILENT /LOG="C:\ssl\install32.log"
   - C:\ssl\Win64OpenSSL.exe /SILENT /LOG="C:\ssl\install64.log"