Skip to content

Commit f23eeed

Browse files
emanueljacobifox
authored andcommitted
Fix error cause by missing target dir when copying custom icons
1 parent 782a00d commit f23eeed

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Commands/Build.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,10 @@ private function copyIcons(): void
237237
$targetDirectory = base_path('vendor/area17/twill/frontend/icons-custom');
238238
$originalIcons = config('twill.block_editor.core_icons');
239239

240+
if (!file_exists($targetDirectory)) {
241+
mkdir($targetDirectory);
242+
}
243+
240244
foreach (config('twill.block_editor.directories.source.icons') as $iconDirectory) {
241245
// We do not want to process original icons.
242246
if ($iconDirectory !== $originalIcons) {

0 commit comments

Comments
 (0)