Skip to content

Commit

Permalink
test.
Browse files Browse the repository at this point in the history
  • Loading branch information
tannguyen04 committed Mar 29, 2024
1 parent 0a2d674 commit 60d2724
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Commands/ArtifactCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,11 +237,14 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$this->checkRequirements();
// @phpstan-ignore-next-line
$this->processArtifact($remote, $input->getOptions());

// Dump log file and clean tmp log file.
if (!empty($this->logFile)) {
$this->fsFileSystem->copy($tmpLogFile, $this->logFile);
if ($this->fsFileSystem->exists($tmpLogFile)) {
if (!empty($this->logFile)) {
$this->fsFileSystem->copy($tmpLogFile, $this->logFile);
}
$this->fsFileSystem->remove($tmpLogFile);
}
$this->fsFileSystem->remove($tmpLogFile);
}
catch (\Exception $exception) {
$this->output->writeln([
Expand Down

0 comments on commit 60d2724

Please sign in to comment.