Use the new execa.stdout()
This commit is contained in:
parent
5960fd4fe0
commit
67ff666db4
@ -15,7 +15,7 @@ export default class NfsHandler extends LocalHandler {
|
|||||||
let stdout
|
let stdout
|
||||||
const mounted = {}
|
const mounted = {}
|
||||||
try {
|
try {
|
||||||
({stdout} = await execa('findmnt', ['-P', '-t', 'nfs,nfs4', '--output', 'SOURCE,TARGET', '--noheadings']))
|
stdout = await execa.stdout('findmnt', ['-P', '-t', 'nfs,nfs4', '--output', 'SOURCE,TARGET', '--noheadings'])
|
||||||
const regex = /^SOURCE="([^:]*):(.*)" TARGET="(.*)"$/
|
const regex = /^SOURCE="([^:]*):(.*)" TARGET="(.*)"$/
|
||||||
forEach(stdout.split('\n'), m => {
|
forEach(stdout.split('\n'), m => {
|
||||||
if (m) {
|
if (m) {
|
||||||
|
Loading…
Reference in New Issue
Block a user