From c91d06e4c61e234ce0692b3310da8019bb64dc7d Mon Sep 17 00:00:00 2001 From: Pereira Ricardo Date: Sun, 13 Sep 2015 18:09:03 +0200 Subject: [PATCH] Use local config file only in non windows system. --- system/src/Grav/Console/Gpm/InstallCommand.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/system/src/Grav/Console/Gpm/InstallCommand.php b/system/src/Grav/Console/Gpm/InstallCommand.php index 6e8e40bbe..6249da84f 100644 --- a/system/src/Grav/Console/Gpm/InstallCommand.php +++ b/system/src/Grav/Console/Gpm/InstallCommand.php @@ -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 (