Skip to content

Commit

Permalink
Bugfix: Prevent 'emptystring' files
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiodekker authored Jun 16, 2021
1 parent ff2470f commit 08b5422
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/BlockManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,11 @@ protected function filesWithBlocks()
{
// Recursively look for any blocks in the output
// directory, returning only the paths.
return explode(
$output = explode(
"\n", trim(shell_exec("grep -l -r __torchlight-block- {$this->jigsaw->getDestinationPath()}/*"))
);

// Filter out empty values caused by our grep query.
return array_filter($output);
}
}

0 comments on commit 08b5422

Please sign in to comment.