diff options
Diffstat (limited to 'src/org/stsci/CondaInstaller.groovy')
-rw-r--r-- | src/org/stsci/CondaInstaller.groovy | 4 |
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() } |