mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
fix(cloudcmd) read root from custom config (#224)
This commit is contained in:
parent
040b2c2914
commit
90cec0169f
1 changed files with 7 additions and 7 deletions
|
|
@ -165,7 +165,7 @@ function main() {
|
|||
config('prefix', prefixer(args.prefix));
|
||||
// MAJOR: remove condition on v12
|
||||
config('prefixSocket', prefixer(args['prefix-socket']) || config('prefix'));
|
||||
config('root', args.root);
|
||||
config('root', args.root || '/');
|
||||
config('vim', args.vim);
|
||||
config('columns', args.columns);
|
||||
config('log', args.log);
|
||||
|
|
@ -188,12 +188,12 @@ function main() {
|
|||
readConfig(args.config);
|
||||
|
||||
const options = {
|
||||
root: args.root || '/', // --no-root
|
||||
editor: args.editor,
|
||||
packer: args.packer,
|
||||
prefix: args.prefix,
|
||||
prefixSocket: args['prefix-socket'] || args.prefix, // MAJOR: remove condition on v12
|
||||
columns: args.columns,
|
||||
root: config('root'),
|
||||
editor: config('editor'),
|
||||
packer: config('packer'),
|
||||
prefix: config('prefix'),
|
||||
prefixSocket: config('prefixSocket') || config('prefix'), // MAJOR: remove condition on v12
|
||||
columns: config('columns'),
|
||||
};
|
||||
|
||||
const password = env('password') || args.password;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue