Fix checking of environment variable for PHPCI config file.

This commit is contained in:
Dan Cryer 2014-12-18 09:34:07 +00:00
parent 977a37173d
commit 965636efde

View file

@ -20,12 +20,9 @@ if (empty($timezone)) {
// env for an alternative config path. // env for an alternative config path.
$configFile = dirname(__FILE__) . '/PHPCI/config.yml'; $configFile = dirname(__FILE__) . '/PHPCI/config.yml';
if (!file_exists($configFile)) { $configEnv = getenv('phpci_config_file');
$configEnv = getenv('phpci_config_file'); if (!empty($configEnv)) {
$configFile = $configEnv;
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: // If we don't have a config file at all, fail at this point and tell the user to install: