fix: VBoxManage - don't fail when not in PATH

- Test-Path throws when its arg is $null
This commit is contained in:
Eric Loveland
2013-07-23 17:33:43 -04:00
committed by Iristyle
parent f71bc9aeba
commit e56b837e63

View File

@@ -19,7 +19,7 @@ try {
$vboxManage = (Which VBoxManage),
$vboxManageDefault |
? { Test-Path $_ } |
? { $_ -and { Test-Path $_ } } |
Select -First 1
if (!$vboxManage)