Skip to content
This repository has been archived by the owner on Jun 11, 2021. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:docker/kitematic
Browse files Browse the repository at this point in the history
  • Loading branch information
jmorganca committed Jan 19, 2016
2 parents 48b9be7 + d122fb9 commit dd56906
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/VirtualBoxUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ var VirtualBox = {
return util.execFile([this.command(), 'sharedfolder', 'add', vmName, '--name', pathName, '--hostpath', hostPath, '--automount']);
},
vmExists: function (name) {
return util.execFile([this.command(), 'showvminfo', name]).then(() => {
return true;
}).catch((err) => {
return util.execFile([this.command(), 'list', 'vms']).then(out => {
return out.indexOf('"' + name + '"') !== -1;
}).catch(() => {
return false;
});
}
Expand Down

0 comments on commit dd56906

Please sign in to comment.