This commit is contained in:
Radon Rosborough 2021-07-10 18:56:17 +00:00
parent 3d02ea0fcb
commit e27756f685
2 changed files with 7 additions and 2 deletions

View File

@ -3,4 +3,4 @@
set -euo pipefail
make ecr system
make env CMD="dep deploy:live --publish --all" Z=xz CI=1 TEST_PATIENCE=4 TEST_CONCURRENCY=1
make env CMD="dep deploy:live --publish --all --yes" Z=xz CI=1 TEST_PATIENCE=4 TEST_CONCURRENCY=1

View File

@ -355,10 +355,15 @@ async function getUserInput(prompt) {
prompt: prompt,
});
rl.prompt();
const resp = await new Promise((resolve) => {
const resp = await new Promise((resolve, reject) => {
rl.on("line", (line) => {
resolve(line);
});
rl.on("close", () => {
console.log();
console.log();
reject(new Error("cancelled"));
});
});
rl.close();
return resp;