Skip to content

Commit 10f646e

Browse files
mafintoshandrewosh
authored andcommitted
move fuse config up
1 parent b65ba72 commit 10f646e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/commands/fuse-setup.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
const p = require('path')
2+
const CONFIGURE_FUSE = [process.execPath, p.join(__dirname, '../../scripts/configure.js')]
3+
24
const fs = require('fs').promises
35
const { spawn } = require('child_process')
46
const { Command, flags } = require('@oclif/command')
@@ -69,7 +71,7 @@ class SetupCommand extends Command {
6971
console.log('Note: FUSE is already configured.')
7072
} else {
7173
return new Promise((resolve, reject) => {
72-
const child = spawn('sudo', [process.execPath, p.join(__dirname, '../../scripts/configure.js')], {
74+
const child = spawn('sudo', CONFIGURE_FUSE, {
7375
stdio: 'inherit'
7476
})
7577
child.on('error', reject)

0 commit comments

Comments
 (0)