Check for new work dir with both parameters, refs #6651
parent
eb078b432f
commit
56964a9377
|
@ -127,7 +127,7 @@ class Application extends BaseApplication
|
|||
}
|
||||
|
||||
// prompt user for dir change if no composer.json is present in current dir
|
||||
if ($io->isInteractive() && !$input->getParameterOption('--working-dir') && !in_array($commandName, array('', 'list', 'init', 'about', 'help', 'diagnose', 'self-update', 'global', 'create-project'), true) && !file_exists(Factory::getComposerFile())) {
|
||||
if ($io->isInteractive() && !$newWorkDir && !in_array($commandName, array('', 'list', 'init', 'about', 'help', 'diagnose', 'self-update', 'global', 'create-project'), true) && !file_exists(Factory::getComposerFile())) {
|
||||
$dir = dirname(getcwd());
|
||||
$home = realpath(getenv('HOME') ?: getenv('USERPROFILE') ?: '/');
|
||||
|
||||
|
|
Loading…
Reference in New Issue