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…
Reference in New Issue