Skip to content

Commit

Permalink
Merge pull request #1 from claudiodekker/patch-1
Browse files Browse the repository at this point in the history
Bugfix: Prevent 'emptystring' files
  • Loading branch information
aarondfrancis authored Jun 16, 2021
2 parents 68324d2 + 08b5422 commit f83a708
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 f83a708

Please sign in to comment.