From 0a3714e5e0f6046caf9468395aa0587888eb8408 Mon Sep 17 00:00:00 2001 From: Eion Robb Date: Sun, 22 Jun 2014 09:43:30 +1200 Subject: [PATCH] Fix for `android` not being in PATH check on Windows close #103 --- bin/lib/check_reqs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/lib/check_reqs.js b/bin/lib/check_reqs.js index 3296acc1..91875f5c 100644 --- a/bin/lib/check_reqs.js +++ b/bin/lib/check_reqs.js @@ -81,7 +81,7 @@ module.exports.check_android = function() { } return Q(); }, function(stderr) { - if (stderr.match(/command\snot\sfound/)) { + if (stderr.match(/command\snot\sfound/) || stderr.match(/is not recognized as an internal or external command/)) { return Q.reject(new Error('The command \"android\" failed. Make sure you have the latest Android SDK installed, and the \"android\" command (inside the tools/ folder) is added to your path.')); } else { return Q.reject(new Error('An error occurred while listing Android targets. Error: ' + stderr ));