mirror of
https://github.com/certd/certd.git
synced 2026-04-24 20:57:26 +08:00
refactor: home环境变量
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user