mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-04-07 11:26:41 +00:00
Cross platform home directory
This commit is contained in:
parent
4143b6da49
commit
1b8290ade1
@ -1,5 +1,6 @@
|
||||
_ = require('lodash')
|
||||
path = require('path')
|
||||
userHome = require('user-home')
|
||||
|
||||
config =
|
||||
|
||||
@ -7,9 +8,8 @@ config =
|
||||
remoteUrl: 'https://staging.resin.io'
|
||||
apiPrefix: '/ewa/'
|
||||
|
||||
# TODO: Check if not running on UNIX environment
|
||||
# and add a custom path accordingly
|
||||
dataPrefix: path.join(process.env.HOME, '.resin')
|
||||
dataPrefix: path.join(userHome, '.resin')
|
||||
|
||||
sshKeyWidth: 43
|
||||
|
||||
directories:
|
||||
|
@ -54,6 +54,7 @@
|
||||
"pubnub": "~3.7.0",
|
||||
"request-progress": "~0.3.1",
|
||||
"progress-bar": "~0.1.1",
|
||||
"progress": "~1.1.8"
|
||||
"progress": "~1.1.8",
|
||||
"user-home": "~1.1.0"
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user