Skip to content

Commit

Permalink
Use shell:true when running non-user input .cmd files on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielv123 committed Apr 23, 2024
1 parent 79c1a2d commit 262e19e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/create/create.js
Expand Up @@ -108,7 +108,7 @@ async function safeOutputFile(file, data, options={}) {
async function execFile(cmd, args) {
logger.verbose(`executing ${cmd} ${args.join(" ")}`);
return new Promise((resolve, reject) => {
let child = child_process.execFile(cmd, args, (err, stdout, stderr) => {
let child = child_process.execFile(cmd, args, { shell: true }, (err, stdout, stderr) => {
if (err) {
reject(err);
} else {
Expand Down

0 comments on commit 262e19e

Please sign in to comment.