From 67ff666db43150cae5cd52552912c5503eeb3572 Mon Sep 17 00:00:00 2001 From: Julien Fontanet Date: Wed, 27 Apr 2016 09:14:49 +0200 Subject: [PATCH] Use the new execa.stdout() --- src/remote-handlers/nfs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/remote-handlers/nfs.js b/src/remote-handlers/nfs.js index f21fb049c..e88c8a53d 100644 --- a/src/remote-handlers/nfs.js +++ b/src/remote-handlers/nfs.js @@ -15,7 +15,7 @@ export default class NfsHandler extends LocalHandler { let stdout const mounted = {} 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="(.*)"$/ forEach(stdout.split('\n'), m => { if (m) {