From dd3b6e351275620fc2f281a3bdea3f58a4c55d88 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sun, 24 Jun 2018 00:34:24 -0600 Subject: [PATCH] fix question set, add final callback --- bin/telebit.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bin/telebit.js b/bin/telebit.js index 614b517..ded1805 100755 --- a/bin/telebit.js +++ b/bin/telebit.js @@ -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); }); } };