mirror of
https://github.com/getgrav/grav.git
synced 2026-07-04 14:28:57 +02:00
Added a check in bin/gpm install command that could cause open_basedir errors.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user