diff options
| author | Joseph Hunkeler <jhunkeler@gmail.com> | 2018-01-27 14:45:15 -0500 | 
|---|---|---|
| committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2018-01-27 14:45:15 -0500 | 
| commit | e600bd20878c25a02e5cecba243bbcd79c2ff773 (patch) | |
| tree | f11054113e62459502aa6b1dee8bb8804da4c75a /src/edu | |
| parent | 8e885359f4959036720632e2e075bf4d56d9f3a5 (diff) | |
| download | groovy-sandbox-e600bd20878c25a02e5cecba243bbcd79c2ff773.tar.gz | |
Too much vodka, still
Diffstat (limited to 'src/edu')
| -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() {  | 
