From 2155194f6d372a4d5aadc4b02363291b7ce761d7 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Tue, 7 Feb 2017 10:44:55 +0100 Subject: [PATCH] Find another way --- index.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/index.js b/index.js index 5fe6359..2d1301a 100644 --- a/index.js +++ b/index.js @@ -38,12 +38,6 @@ class VirtualBox { if (opts.writable === false || opts.readonly) args.push('--readonly') if (opts.transient) args.push('--transient') - - let that = this; - this.command(args, function () { - const args2 = ['setextradata', 'default', 'VBoxInternal2/SharedFoldersEnableSymlinksCreate/' + name, '1'] - that.command(args2, done) - }) } removeShare() { @@ -166,6 +160,10 @@ class Shares { else this.vm.addShare(name, hostPath, opts, next) }, + (next) => { + this.vm.command(['setextradata', 'default', 'VBoxInternal2/SharedFoldersEnableSymlinksCreate/' + name, '1'], next) + }, + (next) => { this.getFilesystem(name, (err, fs) => { if (err) return next(err)