diff --git a/lib/src/child-writer/utils.js b/lib/src/child-writer/utils.js index 4564b84b..3885759d 100644 --- a/lib/src/child-writer/utils.js +++ b/lib/src/child-writer/utils.js @@ -81,11 +81,10 @@ exports.getCLIWriterArguments = (options) => { return options.image; } - // Parenthesis need to be manually escaped, - // otherwise bash will complain about syntax - // errors when passing this string as an - // argument to the writer proxy script. - return options.image.replace(/([\(\)])/g, '\\$1'); + // Parenthesis and quotes need to be manually escaped, otherwise + // bash will complain about syntax errors when passing this + // string as an argument to the writer proxy script. + return options.image.replace(/([\(\)'"])/g, '\\$1'); }), '--robot',