Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
Support ~/ in path configs.
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Sep 14, 2010
1 parent 0406142 commit 3a2500a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/utils/ini.js
Expand Up @@ -95,6 +95,9 @@ function parseEnv (env) {
function parseField (f) {
f = (""+f).trim()
if (f === "") f = true
if (f.substr(0, 2) === "~/" && process.env.HOME) {
f = path.join(process.env.HOME, f.substr(2))
}
switch (f) {
case "true": f = true; break
case "false": f = false; break
Expand Down

0 comments on commit 3a2500a

Please sign in to comment.