Commit 0d2d179a authored by ntdinh1987's avatar ntdinh1987

create app in current directory

parent 569ba81c
Pipeline #502 failed with stages
......@@ -63,7 +63,10 @@ class NewCommand extends Command
$this->output = $output;
$directory = ($input->getArgument('name')) ? getcwd() . '/' . $input->getArgument('name') : getcwd();
$name = $input->getArgument('name');
$name = ($name == '.') ? '' : $name;
$directory = ($name) ? getcwd() . '/' . $name : getcwd();
if (!$input->getOption('force')) {
$this->verifyApplicationDoesntExist($directory);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment