Added a check in bin/gpm install command that could cause open_basedir errors.

This commit is contained in:
Andy Miller
2015-10-07 16:53:00 -06:00
parent 0f4c65f689
commit ce8e985e56

View File

@@ -102,7 +102,7 @@ class InstallCommand extends Command
$packages = array_map('strtolower', $this->input->getArgument('package'));
$this->data = $this->gpm->findPackages($packages);
if (false === $this->isWindows()) {
if (false === $this->isWindows() && @is_file(getenv("HOME").'/.grav/config')) {
$local_config_file = exec('eval echo ~/.grav/config');
if (file_exists($local_config_file)) {
$this->local_config = Yaml::parse($local_config_file);