Skip to content

Commit

Permalink
Force 'execCommand' to use utf8 and to have max 1MB buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
jiribenes committed Sep 17, 2024
1 parent 7f227b3 commit 7a3a837
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/effektManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export class EffektManager {
*/
private async execCommand(command: string, resolveWithStderr?: boolean): Promise<string> {
return new Promise<string>((resolve, reject) => {
cp.exec(command, (error, stdout, stderr) => {
cp.exec(command, { encoding: 'utf8', maxBuffer: 1024 * 1024 }, (error, stdout, stderr) => {
if (error) {
reject(error);
} else {
Expand Down

0 comments on commit 7a3a837

Please sign in to comment.