Skip to content

Commit 7f323db

Browse files
committed
refactor(sync-from-sqlite): simplify user confirmation for proceeding without force
1 parent 9294a3d commit 7f323db

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

scripts/sync-from-sqlite.ts

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -190,17 +190,8 @@ async function main() {
190190
);
191191

192192
if (!process.argv.includes("--force")) {
193-
const answer = await new Promise((resolve) => {
194-
process.stdout.write("Continue anyway? (y/N) ");
195-
process.stdin.once("data", (data) =>
196-
resolve(data.toString().trim().toLowerCase()),
197-
);
198-
});
199-
200-
if (answer !== "y" && answer !== "yes") {
201-
console.log("Aborted.");
202-
process.exit(0);
203-
}
193+
console.log("Use --force to proceed anyway.");
194+
process.exit(0);
204195
}
205196
}
206197
}

0 commit comments

Comments
 (0)