You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by je...@apache.org on 2013/09/27 16:26:37 UTC

[33/50] [abbrv] webworks commit: Changing our HOME algorithm to match cordova-cli

Changing our HOME algorithm to match cordova-cli


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

Branch: refs/heads/3.1.x
Commit: 4baa51563963cde1439d46d0d1f9bae6b61bdc05
Parents: 6001302
Author: Jeffrey Heifetz <jh...@blackberry.com>
Authored: Tue Aug 20 10:09:56 2013 -0400
Committer: Bryan Higgins <bh...@blackberry.com>
Committed: Thu Sep 12 09:59:44 2013 -0400

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


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/4baa5156/blackberry10/bin/lib/utils.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/lib/utils.js b/blackberry10/bin/lib/utils.js
index 9831223..cc7f01a 100644
--- a/blackberry10/bin/lib/utils.js
+++ b/blackberry10/bin/lib/utils.js
@@ -264,7 +264,7 @@ _self = {
     },
 
     findHomePath : function () {
-        return process.env.HOME || process.env.HOMEPATH || process.env.USERPROFILE;
+        return process.env[(process.platform == 'win32') ? 'USERPROFILE' : 'HOME'];
     },
 
     getCordovaDir: function () {