Skip to content

Commit c2de90f

Browse files
authored
Separate args from command in cql script (github#36516)
1 parent 3857ad4 commit c2de90f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/codeql-cli/scripts/sync.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { readFile, writeFile, copyFile } from 'fs/promises'
44
import { existsSync } from 'fs'
55
import walk from 'walk-sync'
66
import { mkdirp } from 'mkdirp'
7-
import { execSync } from 'child_process'
7+
import { execFileSync, execSync } from 'child_process'
88
import path from 'path'
99
import matter from 'gray-matter'
1010
import { rimraf } from 'rimraf'
@@ -92,6 +92,6 @@ async function rstToMarkdown(sourceDirectory) {
9292
throw new Error(errorMsg)
9393
}
9494

95-
execSync(`pandoc ${tempFilePath} -f rst -t commonmark_x -o ${outputFilepath}`)
95+
execFileSync('pandoc', [tempFilePath, '-f', 'rst', '-t', 'commonmark_x', '-o', outputFilepath])
9696
}
9797
}

0 commit comments

Comments
 (0)