summaryrefslogtreecommitdiff
path: root/src/org/stsci/CondaInstaller.groovy
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2017-07-05 14:14:23 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2017-07-05 14:14:23 -0400
commit70f1e64afa8f80a2523662d7b33ab934838d7ac4 (patch)
tree1af6db841557991af7c001ccb1c13e9e91a290d6 /src/org/stsci/CondaInstaller.groovy
parent9c709674182112fdb693c6bcb53b48db2823e0d3 (diff)
downloadgroovy-sandbox-70f1e64afa8f80a2523662d7b33ab934838d7ac4.tar.gz
jenkinsify
Diffstat (limited to 'src/org/stsci/CondaInstaller.groovy')
-rw-r--r--src/org/stsci/CondaInstaller.groovy4
1 files changed, 2 insertions, 2 deletions
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()
}