Use the new execa.stdout()

This commit is contained in:
Julien Fontanet 2016-04-27 09:14:49 +02:00
parent 5960fd4fe0
commit 67ff666db4

View File

@ -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) {