From 317fcf9f01cea92460f952954330941a62eabf87 Mon Sep 17 00:00:00 2001 From: rhumaric Date: Wed, 13 Nov 2013 22:32:37 +0000 Subject: [PATCH] Added backslash escaping to all insertions in the NodeJS template --- templates/node.js.hb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/node.js.hb b/templates/node.js.hb index c3a696c..a162da1 100644 --- a/templates/node.js.hb +++ b/templates/node.js.hb @@ -1,6 +1,6 @@ var exec = require('child_process').exec; -exec('{{command}}{{#if task}} {{task}}{{/if}}{{#if args}} {{args}}{{/if}}', { +exec('{{escapeBackslashes command}}{{#if task}} {{escapeBackslashes task}}{{/if}}{{#if args}} {{escapeBackslashes args}}{{/if}}', { cwd: '{{escapeBackslashes gruntfileDirectory}}' }, function (err, stdout, stderr) {