fix(OPS71): parse de --body-file no github-pr.mjs
This commit is contained in:
parent
24a867dfc3
commit
4bf6086caa
1 changed files with 2 additions and 2 deletions
|
|
@ -40,10 +40,10 @@ if (!head || !title) {
|
|||
}
|
||||
|
||||
let body = flags.body
|
||||
if (flags.bodyFile) {
|
||||
if (flags['body-file']) {
|
||||
try {
|
||||
const { readFileSync } = await import('node:fs')
|
||||
body = readFileSync(flags.bodyFile, 'utf8')
|
||||
body = readFileSync(flags['body-file'], 'utf8')
|
||||
} catch (error) {
|
||||
console.error(`[github-pr] não consegui ler --body-file: ${error.message}`)
|
||||
process.exit(1)
|
||||
|
|
|
|||
Loading…
Reference in a new issue