fix logic error

Project: http://git-wip-us.apache.org/repos/asf/cordova-windows/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-windows/commit/bd87ef2e
Tree: http://git-wip-us.apache.org/repos/asf/cordova-windows/tree/bd87ef2e
Diff: http://git-wip-us.apache.org/repos/asf/cordova-windows/diff/bd87ef2e

Branch: refs/heads/master
Commit: bd87ef2ef95fcc54e669141db8572935a47eb403
Parents: c36052b
Author: Jesse MacFadyen <[email protected]>
Authored: Mon Oct 26 14:37:31 2015 -0700
Committer: Jesse MacFadyen <[email protected]>
Committed: Mon Oct 26 14:37:31 2015 -0700

----------------------------------------------------------------------
 template/cordova/lib/MSBuildTools.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/bd87ef2e/template/cordova/lib/MSBuildTools.js
----------------------------------------------------------------------
diff --git a/template/cordova/lib/MSBuildTools.js 
b/template/cordova/lib/MSBuildTools.js
index 05c8cda..1742bfa 100644
--- a/template/cordova/lib/MSBuildTools.js
+++ b/template/cordova/lib/MSBuildTools.js
@@ -80,7 +80,7 @@ function checkMSBuildVersion(version) {
             path = path[1];
             // CB-9565: Windows 10 invokes .NET Native compiler, which only 
runs on x86 arch,
             // so if we're running an x64 Node, make sure to use x86 tools.
-            if (version === '14.0' && path.indexOf('amd64')) {
+            if (version === '14.0' && path.indexOf('amd64') > -1) {
                 path = require('path').join(path, '..');
             }
             deferred.resolve(new MSBuildTools(version, path));


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to