cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jeffheif...@apache.org
Subject [33/50] [abbrv] webworks commit: Changing our HOME algorithm to match cordova-cli
Date Fri, 27 Sep 2013 14:26:37 GMT
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 <jheifetz@blackberry.com>
Authored: Tue Aug 20 10:09:56 2013 -0400
Committer: Bryan Higgins <bhiggins@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 () {


Mime
View raw message