summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2018-01-26 19:49:10 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2018-01-26 19:49:10 -0500
commit7ed7718eabc3eec616e1aaf95470d05b8836a72f (patch)
tree412f97ce1ce0afac40c61a2aa02af9c402a8a65e /src
parent3d34771e759c112fdc26f6d9ea1f8ef445c15eaf (diff)
downloadgroovy-sandbox-7ed7718eabc3eec616e1aaf95470d05b8836a72f.tar.gz
Use curl. This time.
Diffstat (limited to 'src')
-rw-r--r--src/edu/stsci/CondaInstaller.groovy7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/edu/stsci/CondaInstaller.groovy b/src/edu/stsci/CondaInstaller.groovy
index 5c27d63..d359992 100644
--- a/src/edu/stsci/CondaInstaller.groovy
+++ b/src/edu/stsci/CondaInstaller.groovy
@@ -32,9 +32,9 @@ class CondaInstaller implements Serializable {
void download() {
println("${this.ident} Downloading $url")
- cmd = "curl -qL ${this.url}"
- proc = cmd.execute()
- proc.inputStream.eachLine { println(it) }
+ def cmd = "curl -qL ${this.url}"
+ def proc = cmd.execute()
+ def proc.inputStream.eachLine { println(it) }
// Whatever Jenkins...
/*
@@ -44,6 +44,7 @@ class CondaInstaller implements Serializable {
body.close()
println("${this.ident} Received ${fp.length()} bytes")
*/
+ return proc.exitValue()
}
int install() {