mirror of
https://git.coolaj86.com/coolaj86/telebit.js.git
synced 2025-03-03 07:00:45 +00:00
fix question set, add final callback
This commit is contained in:
parent
ae5313f39b
commit
dd3b6e3512
@ -168,10 +168,13 @@ function askForConfig(answers, mainCb) {
|
||||
rl.question('relay [default: telebit.cloud]: ', checkRelay);
|
||||
}
|
||||
, function checkRelay(cb) {
|
||||
if (!answers._can_pair) {
|
||||
standardSet = standardSet.concat(fossSet);
|
||||
nextSet = [];
|
||||
if ('telebit.cloud' !== answers.relay) {
|
||||
nextSet = nextSet.concat(standardSet);
|
||||
}
|
||||
if (!answers._can_pair) {
|
||||
nextSet = nextSet.concat(fossSet);
|
||||
}
|
||||
nextSet = standardSet;
|
||||
cb();
|
||||
}
|
||||
];
|
||||
@ -539,6 +542,7 @@ var parsers = {
|
||||
console.log("");
|
||||
}
|
||||
|
||||
cb(null, answers);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user