bugfix ignored path must still be a string
This commit is contained in:
parent
28eb15d2e4
commit
c1917f010b
|
@ -94,8 +94,9 @@ function askForConfig(answers, mainCb) {
|
||||||
answers = answers || {};
|
answers = answers || {};
|
||||||
//console.log("Please create a config file at '" + confpath + "' or specify --config /path/to/config");
|
//console.log("Please create a config file at '" + confpath + "' or specify --config /path/to/config");
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
var stdin = useTty ? fs.createReadStream(null, {
|
var ttyname = '/dev/tty';
|
||||||
fd: fs.openSync({ path: '/dev/tty', flags: fs.constants.O_WRONLY | fs.constants.O_NOCTTY })
|
var stdin = useTty ? fs.createReadStream(ttyname, {
|
||||||
|
fd: fs.openSync({ path: ttyname, flags: fs.constants.O_WRONLY | fs.constants.O_NOCTTY })
|
||||||
}) : process.stdin;
|
}) : process.stdin;
|
||||||
var readline = require('readline');
|
var readline = require('readline');
|
||||||
var rl = readline.createInterface({
|
var rl = readline.createInterface({
|
||||||
|
|
Loading…
Reference in New Issue