summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2018-01-27 14:45:15 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2018-01-27 14:45:15 -0500
commite600bd20878c25a02e5cecba243bbcd79c2ff773 (patch)
treef11054113e62459502aa6b1dee8bb8804da4c75a
parent8e885359f4959036720632e2e075bf4d56d9f3a5 (diff)
downloadgroovy-sandbox-e600bd20878c25a02e5cecba243bbcd79c2ff773.tar.gz
Too much vodka, still
-rw-r--r--src/edu/stsci/CondaInstaller.groovy12
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() {