make 'press any key' last
This commit is contained in:
parent
28a66a9bd7
commit
18b2584728
|
@ -561,18 +561,20 @@ function parseConfig(err, text) {
|
||||||
|
|
||||||
// need just a little time to let the grants occur
|
// need just a little time to let the grants occur
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
utils.putConfig('list', []);
|
utils.putConfig('list', [], function (err) {
|
||||||
|
if (err) { console.error(err); return; }
|
||||||
// workaround for https://github.com/nodejs/node/issues/21319
|
console.log("Success");
|
||||||
if (answers._useTty) {
|
// workaround for https://github.com/nodejs/node/issues/21319
|
||||||
console.log();
|
if (answers._useTty) {
|
||||||
console.log("Press any key to continue...");
|
setTimeout(function () {
|
||||||
console.log();
|
console.log();
|
||||||
setTimeout(function () {
|
console.log("Press any key to continue...");
|
||||||
process.exit(0);
|
console.log();
|
||||||
}, 2 * 1000);
|
process.exit(0);
|
||||||
}
|
}, 0.5 * 1000);
|
||||||
// end workaround
|
}
|
||||||
|
// end workaround
|
||||||
|
});
|
||||||
|
|
||||||
}, 1 * 1000);
|
}, 1 * 1000);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue