diff --git a/lib/ask.js b/lib/ask.js index f2c3c9ef60..bfe50418e2 100644 --- a/lib/ask.js +++ b/lib/ask.js @@ -57,6 +57,8 @@ function prompt (data, key, prompt, done) { answers[key].forEach(function (multiChoiceAnswer) { data[key][multiChoiceAnswer] = true }) + } else if (typeof answers[key] == "string"){ + data[key] = answers[key].replace(/"/g, '\\"') } else { data[key] = answers[key] }