diff options
Diffstat (limited to 'src/edu/stsci/CondaInstaller.groovy')
-rw-r--r-- | src/edu/stsci/CondaInstaller.groovy | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/edu/stsci/CondaInstaller.groovy b/src/edu/stsci/CondaInstaller.groovy index 0b320b2..ed5abfa 100644 --- a/src/edu/stsci/CondaInstaller.groovy +++ b/src/edu/stsci/CondaInstaller.groovy @@ -62,14 +62,9 @@ class CondaInstaller implements Serializable { int download() { println("${this.ident} Downloading $url") - def proc = ["bash", "-c", "curl -sLO ${this.url}"].execute() - def out = new StringBuffer() - def err = new StringBuffer() - proc.consumeProcessOutput(out, err) - proc.waitFor() - - if (out.size() > 0) println(out) - if (err.size() > 0) println(err) + def proc = this.runshell("curl -sLO ${this.url}") + return proc.exitValue() + // Whatever Jenkins... Why is this so hard? /* File fp = new File(this.installer) @@ -78,7 +73,6 @@ class CondaInstaller implements Serializable { body.close() println("${this.ident} Received ${fp.length()} bytes") */ - return proc.exitValue() } int install() { |