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),
|
||||
$vboxManageDefault |
|
||||
? { Test-Path $_ } |
|
||||
? { $_ -and { Test-Path $_ } } |
|
||||
Select -First 1
|
||||
|
||||
if (!$vboxManage)
|
||||
|
Reference in New Issue
Block a user