diff --git a/lib/usage_data.js b/lib/usage_data.js index 898e765e43..8f8ca61169 100644 --- a/lib/usage_data.js +++ b/lib/usage_data.js @@ -51,7 +51,10 @@ exports.askForUsageDataPermission = function () { required: true, type: 'string', pattern: /y(es)?|no?/i, - message: 'Please enter y or n' + message: 'Please enter y or n', + ask: function () { + return process.stdout.isTTY + } }], function (err, result) { if (err) { reject(err)