File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -8,19 +8,21 @@ const { Command, flags } = require('@oclif/command')
8
8
const { HyperdriveClient } = require ( 'hyperdrive-daemon-client' )
9
9
const constants = require ( 'hyperdrive-daemon-client/lib/constants' )
10
10
11
+ const isPosix = process . platform !== 'win32'
12
+
11
13
class SetupCommand extends Command {
12
14
static usage = 'fuse-setup'
13
15
static description = 'Perform a one-time configuration step for FUSE.'
14
16
static flags = {
15
17
user : flags . integer ( {
16
18
description : `User that should own the ${ constants . mountpoint } directory` ,
17
19
char : 'U' ,
18
- default : process . geteuid ( )
20
+ default : isPosix && process . geteuid ( )
19
21
} ) ,
20
22
group : flags . integer ( {
21
23
description : `Group that should own the ${ constants . mountpoint } directory` ,
22
24
char : 'G' ,
23
- default : process . getegid ( )
25
+ default : isPosix && process . getegid ( )
24
26
} ) ,
25
27
force : flags . boolean ( {
26
28
description : 'Force the setup to execute, even if it\'s already been performed once.' ,
You can’t perform that action at this time.
0 commit comments