summaryrefslogtreecommitdiff
path: root/src/org/stsci/CondaInstaller.groovy
diff options
context:
space:
mode:
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()
}