From 03c2804b7215fbe09e19bbb64b580e6503b45ea6 Mon Sep 17 00:00:00 2001 From: MarekSz88 <144066601+MarekSz88@users.noreply.github.com> Date: Fri, 26 Jul 2024 11:58:34 +0200 Subject: [PATCH] Update BuildCommand.php 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. --- src/Command/BuildCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Command/BuildCommand.php b/src/Command/BuildCommand.php index 30791549..6e0658ce 100644 --- a/src/Command/BuildCommand.php +++ b/src/Command/BuildCommand.php @@ -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('Skip building ' . $name . ' existing file is still fresh.'); return;