mirror of https://github.com/certd/certd
refactor: home环境变量
parent
9e4e3044b4
commit
2f3db7d982
|
@ -1,7 +1,7 @@
|
||||||
import path from 'path'
|
import path from 'path'
|
||||||
|
|
||||||
function getUserBasePath () {
|
function getUserBasePath () {
|
||||||
const userHome = process.env.USERPROFILE
|
const userHome = process.env.USERPROFILE || process.env.HOME
|
||||||
return path.resolve(userHome, './.certd')
|
return path.resolve(userHome, './.certd')
|
||||||
}
|
}
|
||||||
export default {
|
export default {
|
||||||
|
|
Loading…
Reference in New Issue