summaryrefslogtreecommitdiff
path: root/deps/npm/lib
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2011-12-01 15:01:01 -0800
committerisaacs <i@izs.me>2011-12-01 17:12:21 -0800
commit1ad30a2af4926b97241b4041a048046d903dc6b9 (patch)
tree3795aa0b0c14102447bd9a08557e0e4d0d6da318 /deps/npm/lib
parent99c9d19184fdd46ae88464d7a608aac57a530634 (diff)
downloadnode-new-1ad30a2af4926b97241b4041a048046d903dc6b9.tar.gz
npm 1.1.0-alpha-6
Diffstat (limited to 'deps/npm/lib')
-rw-r--r--deps/npm/lib/utils/ini.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/deps/npm/lib/utils/ini.js b/deps/npm/lib/utils/ini.js
index 85aa28d23b..7d7d4680ec 100644
--- a/deps/npm/lib/utils/ini.js
+++ b/deps/npm/lib/utils/ini.js
@@ -200,6 +200,8 @@ function parseField (f, k, emptyIsFalse) {
case "undefined": return undefined
}
+ f = envReplace(f)
+
if (isPath) {
if (f.substr(0, 2) === "~/" && process.env.HOME) {
f = path.resolve(process.env.HOME, f.substr(2))
@@ -329,7 +331,7 @@ function snapshot (which) {
}
function get (key, which) {
return (!key) ? snapshot(which)
- : (!which) ? envReplace(configList.get(key)) // resolved
+ : (!which) ? configList.get(key) // resolved
: configList.list[TRANS[which]]
? envReplace(configList.list[TRANS[which]][key])
: undefined