fix question set, add final callback

This commit is contained in:
AJ ONeal 2018-06-24 00:34:24 -06:00
parent ae5313f39b
commit dd3b6e3512
1 changed files with 7 additions and 3 deletions

View File

@ -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);
});
}
};