Skip to content

Commit

Permalink
fix: fix configDir for non-windows
Browse files Browse the repository at this point in the history
  • Loading branch information
davewasmer committed Mar 30, 2017
1 parent b45c515 commit 7457cde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ if (isWindows && process.env.LOCALAPPDATA) {
} else {
let uid = process.getuid && process.getuid();
let userHome = (isLinux && uid === 0) ? path.resolve('/usr/local/share') : require('os').homedir();
path.join(userHome, '.config', 'yarn');
configDir = path.join(userHome, '.config', 'yarn');
}
const configPath: (...pathSegments: string[]) => string = path.join.bind(path, configDir);

Expand Down

0 comments on commit 7457cde

Please sign in to comment.