fix: VBoxManage - don't fail when not in PATH
- Test-Path throws when its arg is $null
This commit is contained in:
@@ -19,7 +19,7 @@ try {
|
|||||||
|
|
||||||
$vboxManage = (Which VBoxManage),
|
$vboxManage = (Which VBoxManage),
|
||||||
$vboxManageDefault |
|
$vboxManageDefault |
|
||||||
? { Test-Path $_ } |
|
? { $_ -and { Test-Path $_ } } |
|
||||||
Select -First 1
|
Select -First 1
|
||||||
|
|
||||||
if (!$vboxManage)
|
if (!$vboxManage)
|
||||||
|
Reference in New Issue
Block a user