fix(fs/_mount/_sync): dont use --target

Because it also checks the parents of the path.
This commit is contained in:
Julien Fontanet 2019-02-28 18:29:09 +01:00
parent 94d0809380
commit 60243d8517

View File

@ -89,7 +89,7 @@ export default class MountHandler extends LocalHandler {
try {
// the failure may mean it's already mounted, use `findmnt` to check
// that's the case
await this._execa('findmnt', ['--target', realPath], {
await this._execa('findmnt', [realPath], {
stdio: 'ignore',
})
} catch (_) {