Skip to content
This repository was archived by the owner on May 16, 2020. It is now read-only.

Commit 357481a

Browse files
fix(atlauncher-scripts): fix running commands not filtering out booleans
1 parent a6cb2d7 commit 357481a

File tree

1 file changed

+2
-2
lines changed
  • packages/atlauncher-scripts/utils

1 file changed

+2
-2
lines changed

packages/atlauncher-scripts/utils/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,11 @@ function spawnSyncProcess(command = 'node', processes = [], workingDirectory = g
172172
}
173173

174174
processesToRun.forEach((processToRun) => {
175-
const commandArguments = processToRun.filter((p) => p);
175+
const commandArguments = processToRun.filter(Boolean);
176176

177177
console.log(chalk`{black.bgWhite Running '${command} ${commandArguments.join(' ')}'}\n`);
178178

179-
const result = spawn.sync(command, processToRun, {
179+
const result = spawn.sync(command, commandArguments, {
180180
stdio: 'inherit',
181181
cwd: workingDirectory,
182182
});

0 commit comments

Comments
 (0)