Skip to content
Snippets Groups Projects
Commit 2ffe5193 authored by anttil's avatar anttil
Browse files

SSDM-4098: add -L option for 'curl' to handle ssl problems

SVN: 37300
parent e9c78eca
No related branches found
No related tags found
No related merge requests found
...@@ -249,7 +249,7 @@ def downloadFile(url, filename) { ...@@ -249,7 +249,7 @@ def downloadFile(url, filename) {
def file = project(':openbis').file("../openbis_standard_technologies/targets/downloads/$filename") def file = project(':openbis').file("../openbis_standard_technologies/targets/downloads/$filename")
if (file.exists() == false || System.currentTimeMillis() - file.lastModified() > 3600000) { if (file.exists() == false || System.currentTimeMillis() - file.lastModified() > 3600000) {
file.getParentFile().mkdirs() file.getParentFile().mkdirs()
ext.executeFunction('curl', [url, '-sL', '-o', file.getAbsolutePath()]) ext.executeFunction('curl', [url, '-sLk', '-o', file.getAbsolutePath()])
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment