mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-09-05 00:48:57 +02:00
Make file locations work better from global install.
This commit is contained in:
@@ -54,7 +54,7 @@ class ListCommand extends AbstractCommand
|
||||
protected function listEnvironments()
|
||||
{
|
||||
$environments = array();
|
||||
$content = scandir('.mage/config/environment/');
|
||||
$content = scandir(getcwd() . '/.mage/config/environment/');
|
||||
foreach ($content as $file) {
|
||||
if (strpos($file, '.yml') !== false) {
|
||||
$environments[] = str_replace('.yml', '', $file);
|
||||
@@ -73,4 +73,4 @@ class ListCommand extends AbstractCommand
|
||||
Console::output('<dark_gray>You don\'t have any environment configured.</dark_gray>', 1, 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user