This commit is contained in:
crazywhalecc
2022-08-03 16:37:26 +08:00
parent 90de54c6a3
commit 2c1a158d3e
10 changed files with 13 additions and 11 deletions

View File

@@ -35,7 +35,7 @@ class BuildCommand extends Command
protected function execute(InputInterface $input, OutputInterface $output): int
{
$this->output = $output;
$target_dir = $input->getOption('target') ?? (WORKING_DIR);
$target_dir = $input->getOption('target') ?? WORKING_DIR;
if (mb_strpos($target_dir, '../')) {
$target_dir = realpath($target_dir);
}