1
0
mirror of synced 2025-12-19 18:10:59 -05:00

Separate args from command in cql script (#36516)

This commit is contained in:
Hector Alfaro
2023-04-21 13:04:16 -04:00
committed by GitHub
parent 3857ad4c5f
commit c2de90f65f

View File

@@ -4,7 +4,7 @@ import { readFile, writeFile, copyFile } from 'fs/promises'
import { existsSync } from 'fs'
import walk from 'walk-sync'
import { mkdirp } from 'mkdirp'
import { execSync } from 'child_process'
import { execFileSync, execSync } from 'child_process'
import path from 'path'
import matter from 'gray-matter'
import { rimraf } from 'rimraf'
@@ -92,6 +92,6 @@ async function rstToMarkdown(sourceDirectory) {
throw new Error(errorMsg)
}
execSync(`pandoc ${tempFilePath} -f rst -t commonmark_x -o ${outputFilepath}`)
execFileSync('pandoc', [tempFilePath, '-f', 'rst', '-t', 'commonmark_x', '-o', outputFilepath])
}
}