From 7944b7fc4e290cebad72ade707a705bf969401d2 Mon Sep 17 00:00:00 2001 From: seb vincent Date: Wed, 29 Oct 2014 14:48:05 +0800 Subject: [PATCH] getSampleCode Windows path fix --- grunt-helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grunt-helpers.js b/grunt-helpers.js index d4cb73c40..2d495aceb 100644 --- a/grunt-helpers.js +++ b/grunt-helpers.js @@ -72,7 +72,7 @@ module.exports.getSampleCode = function (grunt, hardcore, cb) { var sampleCodeGit = path.resolve(submodulesDir, "sample-code"); var sampleCodeDir = path.resolve(__dirname, "sample-code"); var sampleCodeExists = fs.existsSync(sampleCodeDir); - var updateCmd = "git submodule update --init '" + sampleCodeGit + "'"; + var updateCmd = "git submodule update --init \"" + sampleCodeGit + "\""; console.log("Cloning/updating Appium sample-code submodule"); execWithOutput(updateCmd, function (err, stdout, stderr) { if (err) return cb(err);