From c8ba896350ee295cb55e216ef4f22cf23a458063 Mon Sep 17 00:00:00 2001 From: Dan Cryer Date: Thu, 18 Dec 2014 09:34:07 +0000 Subject: [PATCH] Fix checking of environment variable for PHPCI config file. --- bootstrap.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/bootstrap.php b/bootstrap.php index c2f9c69b..bee42220 100755 --- a/bootstrap.php +++ b/bootstrap.php @@ -20,12 +20,9 @@ if (empty($timezone)) { // env for an alternative config path. $configFile = dirname(__FILE__) . '/PHPCI/config.yml'; -if (!file_exists($configFile)) { - $configEnv = getenv('phpci_config_file'); - - if (!empty($configEnv)) { - $configFile = $configEnv; - } +$configEnv = getenv('phpci_config_file'); +if (!empty($configEnv)) { + $configFile = $configEnv; } // If we don't have a config file at all, fail at this point and tell the user to install: