diff options
| author | Joseph Hunkeler <jhunkeler@gmail.com> | 2018-01-27 14:35:29 -0500 | 
|---|---|---|
| committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2018-01-27 14:35:29 -0500 | 
| commit | b35d9586dbb35d79f83d066153ae460b25dc82d4 (patch) | |
| tree | 4aee086423660427e8c49fcdf74a5fb6bbcba8cb /src/edu/stsci | |
| parent | a339be07b3d5dad0f6952701c6377d65dda3367f (diff) | |
| download | groovy-sandbox-b35d9586dbb35d79f83d066153ae460b25dc82d4.tar.gz | |
Too much vodka.
Diffstat (limited to 'src/edu/stsci')
| -rw-r--r-- | src/edu/stsci/CondaInstaller.groovy | 12 | 
1 files changed, 8 insertions, 4 deletions
diff --git a/src/edu/stsci/CondaInstaller.groovy b/src/edu/stsci/CondaInstaller.groovy index 9be4a70..27f1b06 100644 --- a/src/edu/stsci/CondaInstaller.groovy +++ b/src/edu/stsci/CondaInstaller.groovy @@ -30,13 +30,17 @@ class CondaInstaller implements Serializable {          this.url = "${this.dist.baseurl}/" + this.installer      } -    void download() { +    int download() {          println("${this.ident} Downloading $url") -        def cmd = "curl -qL ${this.url}" -        def proc = cmd.execute() +        def proc = ["bash", "-c", "curl -sLO ${this.url}"].execute() +        def out = new StringBuffer() +        def err = new StringBuffer() +        proc.consumeProcessOutput(out, err)          proc.waitFor() -        // Whatever Jenkins... +        if (out.size() > 0) println(out) +        if (err.size() > 0) println(err) +        // Whatever Jenkins... Why is this so hard?          /*          File fp = new File(this.installer)          def body = fp.newOutputStream()  | 
