mirror of
https://github.com/affaan-m/ECC.git
synced 2026-10-18 14:07:33 +02:00
fix(hooks): enforce literal formatter invocation at spawn boundaries
This commit is contained in:
@@ -322,7 +322,7 @@ function getLinterInvocation(command, args, platform = process.platform) {
|
||||
function runLinterCommand(command, args) {
|
||||
try {
|
||||
const invocation = getLinterInvocation(command, args);
|
||||
return spawnSync(invocation.command, invocation.args, invocation.options);
|
||||
return spawnSync(invocation.command, invocation.args, { ...invocation.options, shell: false });
|
||||
} catch (error) {
|
||||
return { status: null, stdout: '', stderr: '', error };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user