mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-20 01:33:05 +00:00
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
|
let body = flags.body
|
||||||
if (flags.bodyFile) {
|
if (flags['body-file']) {
|
||||||
try {
|
try {
|
||||||
const { readFileSync } = await import('node:fs')
|
const { readFileSync } = await import('node:fs')
|
||||||
body = readFileSync(flags.bodyFile, 'utf8')
|
body = readFileSync(flags['body-file'], 'utf8')
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`[github-pr] não consegui ler --body-file: ${error.message}`)
|
console.error(`[github-pr] não consegui ler --body-file: ${error.message}`)
|
||||||
process.exit(1)
|
process.exit(1)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue