fix: make lint run on Windows in PowerShell
This commit is contained in:
parent
878c5b663d
commit
4017f3faa7
2 changed files with 7 additions and 7 deletions
|
@ -94,7 +94,7 @@ const LINTERS = [ {
|
|||
const allOk = filenames.map(filename => {
|
||||
const args = ['format', filename]
|
||||
if (!opts.fix) args.push('--dry-run')
|
||||
const result = childProcess.spawnSync('gn', args, { stdio: 'inherit' })
|
||||
const result = childProcess.spawnSync('gn', args, { stdio: 'inherit', shell: true })
|
||||
if (result.status === 0) {
|
||||
return true
|
||||
} else if (result.status === 2) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue