Skip to content

Commit

Permalink
Update BuildCommand.php
Browse files Browse the repository at this point in the history
Fixed condition for check of force option.
Previously if we put anything as force option it converted to true, which skipped building. While the expected behaviour was to create new build.
  • Loading branch information
MarekSz88 authored Jul 26, 2024
1 parent 0857695 commit 03c2804
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command/BuildCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ protected function buildTarget(AssetTarget $build, Factory $factory, Arguments $
$compiler = $factory->compiler();

$name = $writer->buildFileName($build);
if ($writer->isFresh($build) && $args->getOption('force')) {
if ($writer->isFresh($build) && $args->getOption('force') === false) {
$io->out('<info>Skip building</info> ' . $name . ' existing file is still fresh.');

return;
Expand Down

0 comments on commit 03c2804

Please sign in to comment.