diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2017-07-05 14:14:23 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2017-07-05 14:14:23 -0400 |
commit | 70f1e64afa8f80a2523662d7b33ab934838d7ac4 (patch) | |
tree | 1af6db841557991af7c001ccb1c13e9e91a290d6 | |
parent | 9c709674182112fdb693c6bcb53b48db2823e0d3 (diff) | |
download | groovy-sandbox-70f1e64afa8f80a2523662d7b33ab934838d7ac4.tar.gz |
jenkinsify
-rw-r--r-- | src/org/stsci/Conda.groovy | 2 | ||||
-rw-r--r-- | src/org/stsci/CondaInstaller.groovy | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/org/stsci/Conda.groovy b/src/org/stsci/Conda.groovy index d0736e0..8e306ed 100644 --- a/src/org/stsci/Conda.groovy +++ b/src/org/stsci/Conda.groovy @@ -10,7 +10,7 @@ class Conda implements Serializable { Conda (prefix) { this.prefix = prefix - this.prefix_exists = new File(this.prefix).exists() + this.prefix_exists = fileExists this.prefix this.shell_environment = [:] this.environment_name = "" this.channels = [] diff --git a/src/org/stsci/CondaInstaller.groovy b/src/org/stsci/CondaInstaller.groovy index 50f7f50..e65a2e1 100644 --- a/src/org/stsci/CondaInstaller.groovy +++ b/src/org/stsci/CondaInstaller.groovy @@ -37,12 +37,12 @@ class CondaInstaller implements Serializable { } int install() { - if (new File(this.prefix).exists()) { + if (fileExists this.prefix)) { println("Skipping installation: ${this.prefix} exists.") return 0xFF } - if (!new File('installer.sh').exists()) { + if (!fileExists 'installer.sh') { this.download() } |