You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by na...@apache.org on 2014/08/28 21:03:17 UTC

[03/50] git commit: Fix for `android` not being in PATH check on Windows

Fix for `android` not being in PATH check on Windows

close #103


Project: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/commit/7da43228
Tree: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/tree/7da43228
Diff: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/diff/7da43228

Branch: refs/heads/master
Commit: 7da432289dc3d01190a3c8c883a29fb5b6bcf36a
Parents: 6e830fc
Author: Eion Robb <ei...@robbmob.com>
Authored: Sun Jun 22 09:43:30 2014 +1200
Committer: Archana Naik <na...@lab126.com>
Committed: Wed Jul 30 18:06:18 2014 -0700

----------------------------------------------------------------------
 bin/lib/check_reqs.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/blob/7da43228/bin/lib/check_reqs.js
----------------------------------------------------------------------
diff --git a/bin/lib/check_reqs.js b/bin/lib/check_reqs.js
index 397283e..327e7e6 100644
--- a/bin/lib/check_reqs.js
+++ b/bin/lib/check_reqs.js
@@ -82,7 +82,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 ));