mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
refactor(config) homedir -> HOME
This commit is contained in:
parent
0f4244756e
commit
327fa421a0
1 changed files with 2 additions and 2 deletions
|
|
@ -17,12 +17,12 @@
|
|||
ponse = require('ponse'),
|
||||
jonny = require('jonny'),
|
||||
readjson = require('readjson'),
|
||||
homedir = require('os-homedir'),
|
||||
HOME = require('os-homedir')(),
|
||||
|
||||
apiURL = CloudFunc.apiURL,
|
||||
|
||||
ConfigPath = path.join(DIR, 'json/config.json'),
|
||||
ConfigHome = path.join(homedir(), '.cloudcmd.json'),
|
||||
ConfigHome = path.join(HOME, '.cloudcmd.json'),
|
||||
|
||||
config =
|
||||
readjson.sync.try(ConfigHome) ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue