Skip to content

Commit

Permalink
Fix error cause by missing target dir when copying custom icons
Browse files Browse the repository at this point in the history
  • Loading branch information
emanueljacob authored and ifox committed Jan 9, 2024
1 parent 782a00d commit f23eeed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Commands/Build.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@ private function copyIcons(): void
$targetDirectory = base_path('vendor/area17/twill/frontend/icons-custom');
$originalIcons = config('twill.block_editor.core_icons');

if (!file_exists($targetDirectory)) {
mkdir($targetDirectory);
}

foreach (config('twill.block_editor.directories.source.icons') as $iconDirectory) {
// We do not want to process original icons.
if ($iconDirectory !== $originalIcons) {
Expand Down

0 comments on commit f23eeed

Please sign in to comment.