chore: code cleanup
This commit is contained in:
1 parent
bdc1bf4b9f
commit
59e4a2d49b
1 file changed
+1
-1
+1
-1
@@ -87,7 +87,7 @@ desc('Build the release locally: committed state, production dependencies, theme
|
|||||||
task('build', function () {
|
task('build', function () {
|
||||||
// Inside DDEV directly, on the host through "ddev exec" (paths relative to the project root)
|
// Inside DDEV directly, on the host through "ddev exec" (paths relative to the project root)
|
||||||
$inDdev = getenv('IS_DDEV_PROJECT') === 'true';
|
$inDdev = getenv('IS_DDEV_PROJECT') === 'true';
|
||||||
$exec = fn (string $command) => runLocally($inDdev
|
$exec = fn(string $command) => runLocally($inDdev
|
||||||
? $command
|
? $command
|
||||||
: 'ddev exec bash -c ' . escapeshellarg($command));
|
: 'ddev exec bash -c ' . escapeshellarg($command));
|
||||||
runLocally('rm -rf {{build_dir}} && mkdir -p {{build_dir}}');
|
runLocally('rm -rf {{build_dir}} && mkdir -p {{build_dir}}');
|
||||||
|
|||||||
Reference in new issue
Block a user