fix(ci): resolve ubuntu check regressions
This commit is contained in:
@@ -203,6 +203,15 @@ async function interactiveAnswers({ dryRun = false } = {}) {
|
||||
}
|
||||
}
|
||||
|
||||
async function readAnswers(source) {
|
||||
if (source === "-") {
|
||||
let content = "";
|
||||
for await (const chunk of input) content += chunk;
|
||||
return JSON.parse(content);
|
||||
}
|
||||
return JSON.parse(await readFile(path.resolve(source), "utf8"));
|
||||
}
|
||||
|
||||
async function main() {
|
||||
const args = parseArgs(process.argv.slice(2));
|
||||
if (args.help) {
|
||||
@@ -216,7 +225,7 @@ async function main() {
|
||||
|
||||
let answers;
|
||||
if (args.answers) {
|
||||
answers = JSON.parse(await readFile(path.resolve(args.answers), "utf8"));
|
||||
answers = await readAnswers(args.answers);
|
||||
} else {
|
||||
answers = await buildCliSelection(args);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user