Use local config file only in non windows system.

This commit is contained in:
Pereira Ricardo
2015-09-13 18:09:03 +02:00
parent b991bf5301
commit c91d06e4c6

View File

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