Skip to content

Commit

Permalink
windows dbg
Browse files Browse the repository at this point in the history
  • Loading branch information
david-d-h committed Aug 29, 2023
1 parent cb415e2 commit 9d6de23
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Checks/Audit/AuditCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,14 @@ public function with(array $data): static

protected function data()
{
$process = Process::run($this->getFullCommand());

if (! $process->successful()) {
throw new Exception($process->errorOutput());
}

return $this->with ?? json_decode(
Process::run($this->getFullCommand())->output(),
$process->output(),
true,
);
}
Expand Down

0 comments on commit 9d6de23

Please sign in to comment.