Skip to content

Commit

Permalink
feat: try shell true
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpeterparker committed Apr 11, 2024
1 parent 824aa5a commit 12596b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/cmd.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const spawn = async ({
silentErrors?: boolean;
}): Promise<number | null> => {
return await new Promise<number | null>((resolve, reject) => {
const process: ChildProcessWithoutNullStreams = spawnCommand(command, args);
const process: ChildProcessWithoutNullStreams = spawnCommand(command, args, { shell: true });

Check failure on line 23 in src/utils/cmd.utils.ts

View workflow job for this annotation

GitHub Actions / lint

Replace `·shell:·true·` with `shell:·true`

process.stdout.on('data', (data) => {
if (stdout !== null && stdout !== undefined) {
Expand Down

0 comments on commit 12596b6

Please sign in to comment.